ABC TV network has cancelled comedian Roseanne Barr's sitcom after she posted a racist tweet likening an African-American former Obama aide to an ape.
ABC said: "Roseanne's Twitter statement is abhorrent, repugnant and inconsistent with our values and we have decided to cancel her show."
Barr's tweet said Valerie Jarrett was the child of the Muslim Brotherhood and the Planet of the Apes film.
The reboot of her hit sitcom Roseanne has been a ratings winner.
Barr deleted Monday night's post and said she was leaving Twitter, but later posted a flurry of tweets including one that said she made the comment after taking a sedative.
"I apologise to Valerie Jarrett and to all Americans," Barr wrote following the outcry, defending her remarks as a "joke".
"I am truly sorry for making a bad joke about her politics and her looks. I should have known better. Forgive me - my joke was in bad taste."
Barr's initial tweet came in response to another Twitter user, who accused Jarrett of helping to conceal purported spying during the Obama administration.
Jarrett was a senior adviser to former US President Barack Obama, and worked with him during his early days in Chicago politics.
She was born in Iran to African-American parents.
What else did Barr say?
MJarrett was not the only target of Barr's Twitter tirade in recent days.
On Monday, the 65-year-old entertainer claimed Chelsea Clinton - daughter of former US President Bill Clinton and Hillary Clinton - was married to a relative of billionaire investor George Soros in a tweet.
Barr tweeted an apology to Chelsea Clinton on Tuesday.
Barr also alleged Mr Soros, who is Jewish, was a Nazi collaborator - a claim his spokesman labelled "an affront".
On Sunday, the comedian criticised the Obama family for signing on with Netflix to produce TV programmes and movies.
The comedian wrote on Tuesday she was "leaving Twitter", but returned shortly after with a string of tweets addressing the cancellation of her sitcom.
"I will handle my sadness the way I want to," she said. "I'm tired of being attacked and belittled more than other comedians who have said worse."
But in another, she said what she did was "unforgiveable" and asked fans not to defend her actions. She also claimed to have written the offensive tweet while under the effects of Ambien - a drug popularly used as a sleep aid.
Barr also said that not only had her new series been axed, but also that older reruns of the sitcom had been cancelled by other networks.
A spokesman for Viacom, which owns various networks including Paramount, earlier said it would stop airing old episodes. The streaming service Hulu also said it would be removing the sitcom from its library.
Barr also tweeted Jarrett to apologise for her original comment, which she said was "insensitive & tasteless".
Well, that was predictable.
The return of Roseanne was as short-lived as it was spectacular.
Its star, Roseanne Barr, is the Donald Trump of sitcom: blunt, provocative and, at times, deeply offensive.
For years her social media activity was laced with profanity, provocation and peculiar conspiracy theories.
ABC executives knew all that when they took the risk on the reboot and at first it seemed the gamble had paid off.
Ratings were superb, while critics praised the sitcom for tackling American political divisions in a manner sympathetic to the millions of people who voted for Mr Trump - a group which often complained that TV wasn't made for them any more - while still entertaining millions of his opponents.
Now for the backlash from angry supporters of the show, the Trump administration and - one imagines - from the president himself.
What's the reaction?
Speaking at a prescheduled MSNBC town hall event on racism, Mrs Jarrett said the Roseanne Barr controversy was "a teaching moment".
"I'm fine, I'm worried about all the people out there who don't have a circle of friends and followers coming to their defence," she said.
She added that Robert Iger, chief executive of Disney, ABC's parent company, had called her to apologise and said he had "zero tolerance" for Barr's tweet.
Following ABC's cancellation notice, Barr's talent agency, ICM Partners, dropped her as a client.
Entertainment media report an internal email to ICM employees called Barr's tweet "disgraceful and unacceptable".
Sara Gilbert, who plays daughter Darlene on the series, posted on Twitter that Barr's comments were "abhorrent".
Emma Kenney, who plays Darlene's daughter Harris, said "the racist and distasteful comments from Roseanne are inexcusable", adding: "Bullies do not win. Ever."
Following Barr's offensive tweet, one of Roseanne's consulting producers, Wanda Sykes, had said she would not be returning to the show.
Danny Zuker, a writer for the original 1988 Roseanne show, said it was "nauseating" to see what Barr had become.
How did her show perform?
Her hit sitcom's cancellation comes just two months after it was revived.
The premiere in March pulled in more than 25 million people, with delayed viewing counted in.
It was renewed for a second season before the 10 episodes even finished airing.
The series depicted the Conners, an American family led by Roseanne, living in the fictional town of Lanford, Illinois.
The comedy series won conservative plaudits because Barr plays a Trump supporter, a group largely ignored by Hollywood.
US President Donald Trump, whom Barr also supports off-camera, had called to congratulate her on the success of the rebooted show.
The original Roseanne aired from 1988-97 and was critically acclaimed for its portrayal of working-class Americans.
Over the course of its run, the sitcom picked up many awards, with its final episode drawing nearly 17 million viewers when it aired in May 1997.