Netflix has fired the actor Danny Masterson from the show “The Ranch” amid allegations by multiple women that he raped them years ago.

“As a result of ongoing discussions, Netflix and the producers have written Danny Masterson out of ‘The Ranch,’” the streaming service said in a statement on Tuesday. “Yesterday was his last day on the show, and production will resume in early 2018 without him.”

Mr. Masterson will continue to appear in the already filmed fourth part of the comedy series, scheduled for release on Dec. 15, and in some episodes to premiere next year.

The news comes as Mr. Masterson continues to face allegations from four women, stemming from the early 2000s. A lengthy Los Angeles Police Department investigation into their accusations appears to have stalled, according to HuffPost, and the authorities have not yet filed charges.