Prosecutors in New York City abandoned part of their sexual assault case against the movie mogul Thursday.

Evidence emerged that a police detective coached a witness to keep it zipped about evidence that cast doubt on one of the 66-year-old’s earliest accusers.

The judge agreed to dismiss the lone charge in the case related to aspiring actress Lucia Evans who helped launch the #MeToo movement.

Evans went public one year ago claiming that the Hollywood heavy hitter forced her to perform oral sex on him in his office in 2004.

“Let me be clear: The decision to throw away my client’s sexual assault charges says nothing about Weinstein’s guilt or innocence. Nor does it reflect on Lucia’s consistent allegation that she was sexually assaulted with force by Harvey Weinstein,” her lawyer, Carrie Goldberg said in a written statement.

“It only speaks volumes about the Manhattan DA’s office and its mishandling of my client’s case.”

Prosecutors said in a letter unsealed Thursday they learned weeks ago that a woman who was with Evans the night she met Weinstein at a restaurant had given the detective a contradictory account of what happened.

The woman told the detective in February that Weinstein had offered them money to flash their breasts during the restaurant encounter.

They initially declined, but Evans later told her she had gone ahead and exposed herself to the film producer in a hallway.

The woman also told the detective — identified by Weinstein’s lawyer as Nicholas DiGaudio — that sometime after Evans’ office meeting with Weinstein, she suggested what happened was consensual, according to the letter.

Weinstein had promised to get her an acting job if she agreed to perform oral sex, and she agreed, it said.

According to the witness, who was not named in the court filing, Evans had been drinking and “appeared to be upset, embarrassed and shaking” when she told the story.

Prosecutors also disclosed that they had discovered a draft e-mail that Evans had written three years ago to a man who is now her husband that “describes details of the sexual assault that differ from the account” she provided to investigators.

Goldberg insisted Evans has told the truth and disputed that she either showed Weinstein her breasts or misled investigators.

The movie mogul’s fabled career imploded after he was hit by a tidal wave of lurid allegations relating to the rape and sexual of a large number of women.

He still faces charges over allegations that he raped an unidentified woman in his hotel room in 2013 and performed a forcible sex act on a different woman in 2006.

He has pleaded not guilty and denies all allegations of nonconsensual sex.

Prosecutor Joan Illuzzi-Orbon insisted the rest of the case is strong and said the district attorney’s office was looking into the possibility of bringing additional charges.