Where’s Donald Trump when you need him?

It took eight years and well over $1 million in taxpayer funds to get rid of Murry Bergtraum HS Spanish teacher Yvonne Chalom.

Between November 2003 and April 2004, Chalom, 49, allegedly left “bizarre, threatening” messages after-hours on the voicemail of three administrators at the lower Manhattan school. They included audio of news reports on gunshots in Iraq, the anniversary of the Columbine school massacre, and Trump’s “You’re Fired!”

A jury convicted Chalom on 32 counts of aggravated harassment in 2005. But the city Department of Education felt it needed more grounds to terminate Chalom. It accused her of taking photos of a school clock without permission, throwing a temper tantrum in a room-assignment mixup, and calling an assistant principal a “bitch.”

Her disciplinary hearing got under way in June 2007.

It spanned two years — the longest ever, say sources involved in teacher discipline — with nearly 100 days of argument and testimony, 254 exhibits, and more than 20,000 transcript pages.

It took another two years to get a ruling.

State law requires hearing officers to render written decisions within 30 days. Among other ignored timelines in Chalom’s case, hearing officer James Cashen allowed the lawyers nearly a year to submit their closing briefs. Then he took more than a year to issue his opinion, signed May 26. He agreed Chalom should go.

“There was a lot to review, a lot of thought to be given to it.” said Cashen, 78.

Chalom, 49, continued to rake in $100,049 a year until the ruling arrived. Over the course of her case, she collected more than $700,000 to do nothing except sit in a rubber room at a table stacked with papers from her hearing. The DOE never challenged her competence in the classroom.

She sued in Manhattan Supreme Court last month to overturn the firing.

“Corruption is rampant in the DOE,” she told The Post. She said she’s the victim of “malice and harassment” by supervisors who have tried to get rid of her since she returned from a sabbatical, a year off with pay, in 2002. Chalom, who lives near Ground Zero, claimed she suffered from post-traumatic stress after 9/11, but offered no proof, Cashen found.

The case cost the state Education Department, which pays for hearings, an estimated $339,000, including $69,000 for stenographers. Cashen has not yet filed invoices, but his bill — he charges $900 for each five-hour day — could come in at $270,000.

The dragged-out case highlights a “profoundly broken” teacher-disciplinary system, said Jay Worona, general counsel to the New York State School Boards Association, which has proposed reforms.

The system is also broke financially. The state owes teacher-hearing arbitrators more than $6.5 million, and is more than a year behind in paying them. The deficit is expected to grow to $9.5 million by next March 31.

The city and United Federation of Teachers reached a deal in April to close rubber rooms and speed up the hearing process. But when teachers, lawyers and hearing officers benefit from extensions, enforcement may remain lax.

“It’s in no one’s interest to complain,” said a source close to Chalom’s case. “Only the taxpayer should complain.”