A California college professor on Wednesday trashed the late Barbara Bush as an “amazing racist,” added that she was “happy the witch is dead” — and then crowed that because she had tenure, she’d never be penalized for her ugly comments.

“Barbara Bush was a generous and smart and amazing racist who, along with her husband, raised a war criminal. F*** outta here with your nice words,” Randa Jarrar, a professor in the English department at California State University, Fresno, wrote on Twitter only an hour after the former first lady passed away Tuesday at the age of 92.

The cowardly Jarrar later made her Twitter account private and wrote that she was “currently on leave from Fresno State.”

But the would-be egghead’s hateful tweets took the internet by storm and were widely circulated before she locked her account.

“PSA: either you are against these pieces of s— and their genocidal ways or you’re part of the problem. That’s actually how simple this is. I’m happy the witch is dead. Can’t wait for the rest of her family to fall to their demise the way 1.5 million Iraqis have,” Jarrar wrote, cruelly adding that she was happy “George W. Bush is probably really sad right now.”

The looney leftist remained defiant, gloating that she was untouchable because she had tenure, which in most cases provides college professors with lifetime job security regardless of their idiotic behavior.

“I work as a tenured professor. I make 100K a year doing that. I will never be fired. I will always have people wanting to hear what I have to say,” she wrote on Twitter.

The nutty professor’s tweets generated more than 2,000 critical replies, the Fresno Bee reported.

“@FresnoStateAlum wow. Not making me feel proud of being an alum right now. I think more than a ‘statement’ is needed from you on this @JosephICastro,” tweeted Lauren Milam, an alumna who tagged Fresno State president Joseph Castro in her tweet.

“Don’t be too hasty to blame Arabs, Palestinians or Muslims for @randajarrar. There’s a good reason why she’s teaching at some third-rate school in Cali instead of being in the mainstream of Arab/Muslim intellectual life,” added Charles Hoskinson on Twitter.

“I have always had great respect for Fresno State, but if @randajarrar and the institution value hate speech through the mockery and celebration of Americans dying, I refuse to associate. Not another penny from me. @JosephICastro and @Fresno_State ought to be ashamed,” added a user who posted as bassam.

The blowback left Jarrar whining about her self-inflicted plight.

“If you’d like to know what it’s like to be an Arab American Muslim American woman with some clout online expressing an opinion, look at the racists going crazy in my mentions right now,” she wrote.

Jarrar also at one point posted a phone number that many viewed as her own and called — swamping the phones of a crisis and suicide prevention center, prompting further outrage.

“Replying to @randajarrar. Your freedom of speech does not entitle you to have all these people spam an actual mental health crisis line. Please stop,” tweeted Eugene Gu, MD, a pediatric surgeon.

The controversy forced Fresno State to issue a statement distancing itself from her comments, which school officials said raised “deep concerns.”

“On behalf of Fresno State, I extend my deepest condolences to the Bush family on the loss of our former First Lady, Barbara Bush,” Castro said in the statement.

“We share the deep concerns expressed by others over the personal comments made today by professor Randa Jarrar, a professor in the English Department at Fresno State.”

Castro said Jarrar’s comments were “as a private citizen” and don’t represent the university.

“Professor Jarrar’s expressed personal views and commentary are obviously contrary to the core values of our University, which include respect and empathy for individuals with divergent points of view, and a sincere commitment to mutual understanding and progress,” he added.

But his reaction was mocked by many as too wimpy.

“The Fresno State president basically defended her saying she had a right to freedom of speech as a private citizen which to me is his way of absolving himself and Fresno State of any accountability for their employees. I believe public opinion is going to prove him wrong,” tweeted jennebehre.