Mr. Trump took a swipe at The Globe by noting that The New York Times Company had sold the paper at a steep loss, though he incorrectly said that the price had been $1. The Times Company sold The Globe and other properties for $70 million in 2013, after having paid $1.1 billion two decades before.

The president’s tweets came a day after the White House announced that Mr. Trump had taken the unprecedented step of revoking the security clearance of one of his biggest critics, John O. Brennan, the former director of the C.I.A. Mr. Brennan said the president’s action was an attempt to silence him and a warning to others who speak out against him and his administration’s policies.

“Mr. Trump’s claims of no collusion are, in a word, hogwash,” Mr. Brennan, who led the C.I.A. when Russia started its interference campaign, wrote in an opinion article published in The Times.

Mr. Trump has been fighting accusations that his presidential campaign colluded with Russia to influence the 2016 election. He has repeatedly said there was no collusion and has called news reports about his campaign’s contacts with Russia “fake news,” even as federal prosecutors detailed such communications in legal documents.

The White House said the president was considering revoking the security clearances of other former national security officials and one current official. Former national security officials maintain their security clearances in part to be of assistance to new administrations for consultation or elaboration on historical context.