Woody Allen and Amazon settled a breach of contract lawsuit that the director had filed after the company backed out of a four-picture movie deal because #MeToo allegations from the 1990s had resurfaced against him.

The terms of the settlement were not disclosed in a one-page filing on Friday in Federal District Court in Manhattan. The filing said the lawsuit had been voluntarily dismissed with prejudice.

Lawyers for Mr. Allen and Amazon did not immediately respond to requests for comment on Saturday.

Mr. Allen, 83, sued Amazon in February, accusing the company of reneging on a lucrative commitment for him to make four films.

The Hollywood division of Amazon, the Seattle-based conglomerate founded by Jeffrey P. Bezos, severed its ties with Mr. Allen in June 2018. The company cited a renewed focus on sexual assault allegations against Mr. Allen, primarily those that he had molested his daughter Dylan Farrow in 1992, when she was 7.