Wanda Sykes will not be returning to Roseanne next season.

The legendary comedian, who served as a writer and consulting producer on the revival, announced her departure Tuesday after Roseanne Barr tweeted a racist joke about former Obama adviser Valerie Jarett. "I will not be returning to @RoseanneOnABC," Sykes announced on Twitter.

In a now-deleted tweet, Barr — who has a lengthy history of making racist, homophobic and transphobic comments — attacked Jarrett's looks and compared her to an Islamist organization. "Muslim brotherhood & planet of the apes had a baby=vj," the actress said in response to a user accusing Jarrett of covering up for Obama. Barr then issued an apology to Jarrett for the offensive message before declaring that she's leaving Twitter.

"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," Barr wrote. "I apologize. I am now leaving Twitter." Her account remains active as of the posting of this story.

Sykes isn't the only major playing exiting ahead of the new season. Co-showrunner and executive producer Whitney Cummings stepped down from her post just before the season finale due to an increasingly busy work schedule.

Roseanne is set to return for Season 11 on ABC this fall.