The ribbon cuttings and news conferences to celebrate new deals have slowed considerably, and more recent plans to open certain brands, like midlevel hotel chains under the names Scion and American Idea, have been dropped. The company also recently announced that it was considering selling its landmark hotel in Washington, which has been one of their hottest assets since it opened in 2016.

Beyond his business, Mr. Trump does not relate to New York City anymore, a person close to him said, and is angry about the attacks on him by New York politicians.

“They haven’t treated me properly,” the president told reporters on Friday. “I paid millions of taxes, millions and millions of dollars in New York.” Mr. Trump also tweeted that although he loved New York, it “can never be great again under the current leadership” of Gov. Andrew Cuomo and Mayor Bill de Blasio.

Mr. de Blasio greeted the president’s departure from New York with “Don’t let the door hit you on the way out.’’ Mr. Cuomo responded with, “Good riddance.”

The insults were reminders that three years into his presidency, the New York City that Mr. Trump once considered synonymous with himself no longer exists. As the son of a wealthy real estate developer who inherited many of his father’s political connections, and who sought to become a celebrity and power broker in his own right, Mr. Trump viewed the city as his playground for nearly four decades. He went to parties, squired beautiful women and avoided a boring life at all costs.