A judge on Thursday refused to drop the charges against two ex-NYPD detectives accused of raping a handcuffed Brooklyn woman in the back of a police van — and told them not to bother filing any motions seeking dismissals.

“I find no reason to review the grand jury minutes and no reason to dismiss,” Brooklyn Supreme Court Judge Danny Chun told lawyers for the disgraced former cops, Richard Hall and Eddie Martins, who were in court for a pre-trial hearing.

Lawyers for the pair were trying to get their indictments dismissed, and complained to the judge over the revelation that Hall, a married father of two, had an affair with Nicole Manini, an assistant Brooklyn DA.

Daniel Bibb, co-counsel for Martins, argued that the DA’s office could have told defense lawyers about the fling but instead filed a letter with the court to “leak it to the press.”

Hall’s defense lawyer, Peter Guadagnino, wanted access to the notes from interviews the DA’s office conducted with Manini about the relationship.

But Chun wasn’t buying it, and said a trial date would be set for the pair during their next court appearance, scheduled for June 28.

Hall and Martins stood meekly side by side when their lawyers’ efforts failed.

The pair are accused in a 50-count indictment of raping and sexually abusing the woman inside an NYPD van after she was picked up in Calvert Vaux Park for allegedly having illegal prescription drugs.

Their accuser, a 19-year-old who uses the pseudonym Anna Chambers on social media, lashed out at the since-fired cops outside the courtroom.

“I wanted to punch them in their f–king heads. I wanted to throw up,” she said.

She also vowed to haunt them once the trial commenced.

“I’m not going to show them that it hurts. I’m going to be here every single day,” she said.

The DA’s office reported Hall’s mistress to the courts Grievance Committee, but did not want to turn anything over to the defense team.

“There is absolutely no evidence this ADA had [anything ] to do with this case,” said prosecutor Anthea Bruffee, adding that the fling was “totally irrelevant to this case.”

Chun ordered that all notes and interviews conducted with Manini be turned over to him for review.