McCarthy joined the long-running chat series last September, but has decided to walk away just nine months into the job after her co-anchor Sherri Shepherd announced she was leaving.

Shepherd confirmed her exit on Thursday night, saying in a statement, “It’s been seven wonderful years on The View and after careful consideration it is time for me to move on.

“I am extremely grateful to Barbara Walters and (executive producer) Bill Geddie for giving me the opportunity. I look forward to the business opportunities that lay ahead for me and I am incredibly grateful to my View family and my fans for supporting me on this journey.”

McCarthy then took to Twitter.com to tell her followers she is also leaving the program.

She writes, “If Sherri goes… I go too. #sisters… My View will be changing too. As will with many hard working folks. Thanks to everyone at the show for your dedication and an amazing year.”

Geddie is also leaving.

A statement from bosses at ABC confirmed their departures: “The View will be moving in an exciting new direction next season and ABC has made decisions to evolve the show creatively.”

The pair’s exit comes months after creator and executive producer Walters retired in April. She launched the Emmy-winning show in 1997.

Actress/comedienne Whoopi Goldberg will be the show’s only returning host when the program comes back for its 18th season this fall.