A day after pleading guilty to a swarm of criminal charges that will land him behind bars, President Trump’s longtime lawyer deleted a gloating 2015 tweet predicting that Hillary Clinton would end up in the slammer.

“@HillaryClinton when you go to prison for defrauding America and perjury, your room and board will be free!” Trump’s self-described fixer Michael Cohen tweeted that December.

Critics including comedian Kathy Griffin gleefully reposted the tweet, which was removed sometime Wednesday morning.

Cohen in court Tuesday described how he violated campaign finance laws by arranging hush-money payments to porn vixen Stormy Daniels and Playboy Playmate Karen McDougal.

They had both alleged that they had affairs with Trump in 2006 shortly after his third wife, Melania, had given birth to their son and only child together.

Cohen admitted that he paid them off at Trump’s direction so their stories would not kill his chances in the presidential election.

He said he violated federal law “in coordination with and at the direction of a federal candidate for office” — meaning Trump.

Cohen faces a prison sentence of 46 to 63 months, according to court filings.