Shonda Rhimes attends the 2015 ABC Upfront at Avery Fisher Hall, Lincoln Center on May 12, 2015 in New York City

Shonda Rhimes attends the 2015 ABC Upfront at Avery Fisher Hall, Lincoln Center on May 12, 2015 in New York City

*Shonda Rhimes is reportedly furious that someone on her “Grey’s Anatomy” staff ran to Radar Online claiming Patrick Dempsey was fired from the show because he had an affair with one of the staffers.

Not long after the website posted this person’s account, the series creator reportedly sent a harsh email to cast and crew, warning them to keep quiet about the affair — or follow McDreamy out the door.

According to a show insider, “Shonda was very unhappy to learn Patrick’s affair with a Grey’s Anatomy staff member had been made public. Suspecting it was individuals from the cast and crew, she sent a stern reminder via email that anyone caught leaking information to the press would be fired immediately. The cast and crew all have signed non-disclosure agreements, prohibiting any details from their employment being discussed publicly.”

“Even though Patrick and Shonda are obviously not on the best terms, she doesn’t want to see his name dragged through the mud,” said the source.

As Radar reported, Dempsey was suddenly fired from Grey’s in April, just a few months after his wife of 15 years, Jillian Fink, filed for divorce. Soon, it was revealed that he had been having an affair with a much-younger staffer from the show.

“It was obvious to everyone Patrick was [sleeping with] her,” an insider previously told Radar. “It got very messy and emotional on set and became a huge liability.”

“Patrick would remain in his trailer after hooking up with her on set and refuse to come out,” the source claimed. “He had also been complaining about the storyline of his character, and felt he wasn’t getting enough screen time.”

Dempsey’s rep previously denied the affair.

Meanwhile, Grey’s Anatomy “is on hiatus and so it was very alarming for the crew to get this email from Shonda,” the source added. “No one wants to jeopardize their jobs, and everyone just wants the Dempsey drama to end.”