"Will pay $5,000 per hair obtained from Hillary Clinton".
"This is not protected by the First Amendment", the judge said. He faces up to 20 years in prison, though the term could end up being shorter under federal sentencing guidelines, the AP reports.
That now appears much less likely, legal experts say.
US prosecutors had moved to jail Shkreli last Thursday.
Shkreli was removed as the company's CEO after he was arrested over unrelated fraud allegations, but has maintained a media profile as a Donald Trump supporter.
"The fact that he continues to remain unaware of the inappropriateness of his actions or words demonstrates to me that he may be creating an ongoing risk to the community", said U.S. District Judge Kiyo Matsumoto, in revoking his bond.
Brafman maintained that line on Wednesday, prompting the judge to pointedly ask: "What's amusing about that?"
Prosecutors had argued that Shkreli had already shown an "escalating pattern of violence against women that is incredibly disturbing", continuing: "It is clear that he is reckless". Now his defense tried to say that, look, other politicians like Donald Trump have said frightful things and they didn't have their bail revoked, and needless to say that argument didn't work.
"I don't know if he's encouraging people to do this, but there's been a small contingent of trolls telling me to sleep with him - but not that politely", Duca had said at the time.
"What's amusing about that", Matsumoto responded. His defense - that the comments were protected by American free speech laws - was flat-out rejected.
"He is soliciting an assault on another person in exchange for $5,000", Matsumoto said. "I don't think stupid makes you violent". Responding to the mixed verdict, Shkreli said he was delighted by the outcome and suggested that law enforcement had made him a target in retaliation for the price hike of Dataprim and his brash "pharma bro" personality.
Matsumoto's willingness to revoke Shkreli's bail may indicate she is open to giving Shkreli a longer prison sentence and decided that given his bad behaviour he should start his time behind bars immediately, legal experts said. This means that this particular pharma bro is being incarcerated ahead of schedule.
Prosecutors pursued the option of having Shkreli's bail revoked as soon as Shkreli posted statuses about Clinton on social media.