A lawsuit accusing the music mogul Russell Simmons of rape was dropped from federal court in Los Angeles on Wednesday.

The complaint was filed in January by Jennifer Jarosik, 37, who sought $5 million in damages. She said that she had first met Mr. Simmons in 2006 when he had offered to help her produce a documentary. Ms. Jarosik said that Mr. Simmons raped her at his home in Los Angeles in 2016 and that afterward she felt humiliation, fear and depression.

On April 4, Mr. Simmons’s legal team submitted an answer in court that strongly denied the accusations, saying that the complaint was “filled with lies against Mr. Simmons, who has only ever tried to help her.”

The filing claims that the sexual encounter was consensual and alludes to a series of text messages in which Ms. Jarosik expresses affection for Mr. Simmons. It also claims that Ms. Jarosik sent unsolicited nude photos to Mr. Simmons after the date on which she said the rape had occurred.