Disney, which owns ABC, is having a rough week.

Roseanne Barr sunk her own ship. 

ABC announced on Tuesday, May 29 that it was cancelling the Roseanne Reboot after the lead actress tweeted at Valerie Jarrett, a former Obama adviser. The racist tweet, which has since been deleted, said, "[if] muslim brotherhood & planet of the apes had a baby = vj."

After being called out, Barr attempted to backtrack and say that the tweet was "a joke." She then announced in a separate tweet that she was leaving twitter. 

I apologize. I am now leaving Twitter.

— Roseanne Barr (@therealroseanne) May 29, 2018

Right before ABC announced that the show was cancelled, Barr tweeted a final time. 

I apologize to Valerie Jarrett and to all Americans. 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.

— Roseanne Barr (@therealroseanne) May 29, 2018

Channing Dungey, president of ABC Entertainment, released a statement saying, "Roseanne's Twitter statement is abhorrent, repugnant and inconsistent with our values, and we have decided to cancel her show."

The show was considered a success for ABC, each week the show topped 10 million viewers.

The reboot was successful enough for ABC to quickly order a second season. However, before ABC announced that it was cancelling the show, Wanda Sykes, a writer and consulting producer, announced that she would not return for the second season allegedly because of Barr.

ABC is owned by Disney-ABC Television Groupp, which is a subsidiary of The Walt Disney Co. (DIS - Get Report) .

Disney has had a rough week so far after Solo only brought in $83 million on its opening weekend. With the cancellation of a highly popular show, the week is just getting worse for the entertainment giant.

When the market closed on Tuesday, Disney was down nearly 3%.