Bethenny Frankel’s ex-husband Jason Hoppy has been arrested for stalking the “Real Housewives of New York” star after allegedly turning up at their 6-year-old daughter’s school and yelling, “I will destroy you.”

Hoppy was charged with harassing and stalking Frankel after he allegedly sent a series of abusive emails, then turned up at their daughter Bryn’s Manhattan school on Friday to allegedly threaten his ex.

An NYPD spokeswoman confirmed the allegations to Page Six: “The complainant said Hoppy had sent numerous emails and FaceTime calls numbering in the hundreds after a cease and desist letter was sent on November 22, 2016.

“On Friday, January 27, the suspect approached her and a friend at her child’s school at around 8:15 a.m. and tried to provoke a fight. He said, ‘I will destroy you, you can get all the lawyers you want, you’ve been warned.’”

Hoppy denies the charges.

He was arrested hours later and charged with aggravated harassment in the first degree, harassment in the second degree and stalking in the fourth degree, the NYPD spokeswoman added.

Hoppy and Frankel, both 46, were married for two years until 2012 and became embroiled in a vicious, drawn-out divorce and custody battle over their daughter. “I have cried enough tears to fill the Hudson River,” Frankel said last year. “I’d think, how could this go on for so long? Four years on a two-year marriage!”

They were forced to share the same Tribeca apartment for some time post-split, which she described as “brutal, horrendous, excruciating.”

It reported last year that Frankel and her most recent boyfriend, Dennis Shields, had been on the receiving end of a torrent of vicious emails allegedly written by Hoppy.

Shields, who had been dating Frankel for a year, sent a legal letter to Hoppy accusing him of sending dozens of emails with “increasing frequency and hostility,” TMZ reported, adding that Hoppy accused Frankel of being “ugly, old and irrelevant” and said Shields is just part of a “revolving door of men” and that “he’ll be gone soon.”

Hoppy’s divorce attorney Bernard Clair declined to comment.

Hoppy’s attorney Robert C. Gottlieb said, “There are no words to express how saddened Mr. Hoppy is over his ex-wife’s unjustified actions. His only concern is his daughter and intends to vigorously fight these false charges.”

But Frankel’s lawyer Barry Zone said she had undergone, “Years of systematic bullying, harassment, stalking and torment on an almost daily basis. Indeed, Mr. Hoppy has sent hundreds of escalating texts and emails to Ms. Frankel, her assistants and her boyfriend,…stating that “I’ll never go away” and that “[y]ou left me no choice but to go to extremes”…requesting copies of her life insurance policy, and telling her that “I’ll pray for you”.

These acts of mental and psychological abuse are domestic violence, pure and simple. No woman, celebrity or not, deserves to have their allegations of such abuse taken lightly, and we are grateful to the NYPD for their immediate action to protect Ms. Frankel.”