A federal judge on Thursday dismissed the pending criminal child sex trafficking case against wealthy financier Jeffrey Epstein, who authorities have said killed himself in a Manhattan jail earlier this month.

The dismissal by U.S. District Judge Richard Berman of both counts against Epstein in response to a request by prosecutors was a formality, given the death of the former friend of Presidents Donald Trump and Bill Clinton.

But it came two days after Epstein's defense lawyers urged the judge to conduct an inquiry into Epstein's death after casting doubt on the finding by the New York City medical examiner's office that he died from suicide by hanging himself in his cell in the Metropolitan Correctional Center.

One of Epstein's lawyers, Martin Weinberg, in a statement to CNBC said: "We do not interpret today's ruling as a determination that Judge Berman has rejected our requests that he exercise his inherent judicial authority to investigate both the cause of Mr. Epstein's death or the horrific conditions in which the MCC held our client while he was pending trial."

Prosecutors had opposed the idea of Berman doing an inquiry of his own into Epstein's death. They noted that the incident is already the focus of a federal grand jury probe, as well as being under investigation by the Office of the Inspector General of the U.S. Justice Department.

Another Epstein lawyer, Reid Weingarten, on Tuesday told Berman that the injuries suffered by Epstein are "far more consistent with assault than suicide." Weingarten cited the defense's own medical experts.

Broken bones were found in Epstein's neck during an autopsy after he died Aug. 10. Such fractures are somewhat more common in cases of strangulation than in hanging.

"We want the court to help us find out what happened," Weingarten said at Tuesday's hearing in U.S. District Court in Manhattan, where nearly two dozen women spoke or had statements read about being abused by Epstein and their dismay that he died before he could be brought to trial.

"We're skeptical of the certitude" of the finding of suicide by hanging by the medical examiner, he said. There are "significant doubts" regarding "the conclusion of suicide," Weingarten said.