President Trump issued a veiled threat Friday to James Comey — telling the ousted FBI director that he’d better hope there are no recordings of their conversations.

“James Comey better hope that there are no ‘tapes’ of our conversations before he starts leaking to the press!” the commander-in-chief tweeted Friday morning.

It was unclear if the president was suggesting he had recorded conversations he had with Comey.

In a later tweet in which he cited the former head of national intelligence, Trump wrote: “When James Clapper himself, and virtually everyone else with knowledge of the witch hunt, says there is no collusion, when does it end?”

Trump earlier fired off a tweet in which he claimed “the story about collusions between the Russians & Trump campaign was fabricated by Dems as an excuse for losing the election.”

Trump axed Comey on Tuesday, later saying that “he wasn’t doing a good job.”

In his termination letter to Comey, Trump thanked him for informing the president “three times” that Trump personally is not under investigation for collusion with Russia during his 2016 campaign.

Trump said in an NBC News interview Thursday that Comey had requested to have dinner with him, during which he asked to remain at the helm of the FBI.

The president said Comey told him once during the dinner and twice by phone that he wasn’t being investigated.

But FBI officials contradicted Trump’s claims, saying the dinner was requested by the White House. A former senior FBI official said Comey also would never have told the president he was not under investigation, The Hill reported.

The New York Times, citing “two people who have heard his account of the dinner,” said Trump asked Comey for his loyalty at the dinner.

Comey reportedly replied that he would offer his honesty.