Here’s $400,000 — now please see yourself out.

That’s the message an anonymous third-party donor sent to a school district superintendent in Idaho, where the teachers union for the New Plymouth School District had accused Kevin Barker of fostering a hostile workplace environment for staffers who didn’t agree with his leadership style, the Idaho Statesman reports.

Barker, who resigned during a school board meeting last month, is now set to receive $400,000 entirely from the anonymous donor. None of the funds will come from the district’s general fund or “any public funds,” according to the settlement agreement obtained by the newspaper.

“Barker may designate, in his discretion, how the lump sum payment is distributed to him, and may direct said payment be made to High Valley Consulting, LLC,” the agreement continued, referencing a limited liability company created by Barker when he resigned on April 25.

Barker, who earned roughly $90,000 a year under his contract, will also receive a monthly $1,500 salary for consulting work through June 2020, as well as life insurance, health insurance for his entire family and contributions through the state’s retirement system for the next two years.

As if that buyout deal wasn’t sweet enough, Barker will also receive a letter of recommendation from the school board and get to keep his Microsoft Surface laptop issued by the school district, the newspaper reports.

But before Barker’s resignation takes effect on June 30, he’ll finish principal evaluations and help district officials during the transition, according to the settlement. In all, he’ll be paid for than $450,000 to step down, according to Idaho Education News.

“He will help us through the transition,” school board chairman Dave Brogan told the website of Barker’s forthcoming consulting job. “He will not help in the hiring process.”

As a consultant for the district, Barker won’t need to attend board meetings or even visit school grounds. He will also keep getting paid even if he gets another job, according to the agreement.

Brogan said officials in the school district — where the average teacher earns $48,000 — have already started the search for Barker’s replacement. The move follows a vote of “no confidence” and repeated calls for Barker to resign in the last three months by the New Plymouth Education Association, Idaho Education News reports.

Barker, for his part, said in a statement released by his attorney last week that the decision to step down was tough due to his “connection with the schools” and their students.

“Nonetheless, this change presents Mr. Barker with the ability to explore other opportunities and allows him much needed time to focus on family,” attorney Julie Klein Fischer told the Idaho Statesman.