In this Jan. 8, 2018, file photo, Roseanne Barr participates in the “Roseanne” panel during the Disney/ABC Television Critics Association Winter Press Tour in Pasadena, Calif. ABC canceled its hit reboot of “Roseanne” on Tuesday, May 29, 2018, following star Roseanne Barr’s racist tweet that referred to former Obama adviser Valerie Jarrett as a product of the Muslim Brotherhood and the “Planet of the Apes.” (Photo by Richard Shotwell/Invision/AP, File)

ABC canceled its hit reboot of “Roseanne” on Tuesday following star Roseanne Barr’s racist tweet that referred to former Obama adviser Valerie Jarrett as a product of the Muslim Brotherhood and the “Planet of the Apes.”

ABC Entertainment President Channing Dungey said the comment “is abhorrent, repugnant and inconsistent with our values.” Barr had apologized and deleted her Monday-night tweet, calling it a “bad joke,” but the damage had already been done.

Barr was also dumped by her talent agency, ICM Partners.

The revival of the comedy was a surprise smash for ABC, owned by the Walt Disney Co., and was counted on to lead the network’s fortunes next season. Its first new episode in March was seen by more than 25 million people, with delayed viewing counted in, numbers that are increasingly rare in network television. ABC expected advertisers to pay millions of dollars for the chance to be seen during commercial breaks on television’s most popular comedy after “The Big Bang Theory.”

And it was all killed in a 53-character tweet.

One of the few network shows about a working-class family, “Roseanne” attracted considerable attention upon its return when Barr’s character supported President Donald Trump. That made the show popular with conservative viewers, and Trump himself suggested the character’s backing had a lot to do with the show’s success.

Barr herself has a history of diving into political conspiracy theories on her Twitter feed, and she ended her Memorial Day weekend with a series of statements. She criticized Democratic financier George Soros and tweeted that Chelsea Clinton was “Chelsea Soros Clinton,” implying she was married to a nephew of Soros. Clinton herself corrected Barr online. Donald Trump Jr. retweeted two of Barr’s statements about Soros, although not the remark about Jarrett.

Valerie Jarrett (AP Photo)

Jarrett, who is Black, was brought up in response to Twitter commentary that raised her name in relation to an Obama conspiracy theory. Barr tweeted: “muslim brotherhood & planet of the apes had a baby=vj.”

She later tweeted an apology to Jarrett. “Forgive me,” she wrote. “My joke was in bad taste.”

Jarrett, who appeared at the taping of an MSNBC show about racism on Tuesday, said she hoped the incident could be turned into a teaching moment.

“I’m fine,” she said. “I’m worried about the people out there who don’t have a circle of friends and followers who come right to their defense.”

Barr was quickly condemned. Comic Wanda Sykes, a “Roseanne” writer, tweeted that she wouldn’t be returning to the show. Sara Gilbert, a co-star, also tweeted that the remark was abhorrent.

It was a quick decision at ABC for Dungey, who is the first African-American to serve as programming chief for one of the major broadcast networks, and her boss, network president Ben Sherwood. Disney chief executive Robert Iger tweeted his approval: “There was only one thing to do here, and that was the right thing.”

Three weeks earlier, “Roseanne” was the toast of ABC’s annual presentation of its programming plans to advertisers. Sherwood even joked then: “If anyone came to play a drinking game based on how many times we mention ‘Roseanne,’ you’re welcome.”

“Roseanne” earned an estimated $45 million in advertising revenue for ABC through its nine episodes that started airing in March, according to Kantar Media. The firm estimates that the 13 episodes that had been ordered for next season would have brought in as much as $60 million, with more through repeat episodes.

Hulu and the Laff comedy channel said Tuesday, they were pulling re-runs of “Roseanne” from their schedules.

The cancellation has no clear precedent in television history, said David Bianculli, professor at Rowan University in New Jersey. The closest analogy is CBS pulling the plug on the Smothers Brothers variety show due to their anti-war views in the late 1960s and the same network not renewing “Lou Grant” at its peak, which star Ed Asner always contended was due to his outspoken political beliefs.

ABC Entertainment President Channing Dungey, canceled the “Roseanne” series (AP Photo)

“Roseanne Barr’s comments were appalling and reminiscent of horrific time in our history when racism was not only acceptable but promoted by Hollywood,” said Derrick Johnson, NAACP president and CEO. “We applaud ABC for taking a stand against racism by canceling ‘Roseanne.’ We commend the network and … Dungey for placing the values of diversity, inclusion and respect for humanity above ratings.”

Barr got what she deserved, said Shonda Rhimes, creator of hit ABC shows like “Grey’s Anatomy” and “Scandal.”

“As I tell my 4-year-old, one makes a choice with one’s actions,” Rhimes tweeted. “Roseanne made a choice. A racist one. ABC made a choice. A human one.”

ICM dropped Barr within hours of the cancellation, saying in a statement that the agency was “greatly distressed by the disgraceful and unacceptable” tweet. Bruce Helford, executive producer of “Roseanne,” said he was “personally horrified and saddened by the comments and in no way do they reflect the values of the people who worked so hard to make this the iconic show that it is.”