Donald Trump / REUTERS

U.S. President Donald Trump has abandoned the idea of hosting next year's Group of Seven summit at his Florida golf resort because of criticism from the media and his political opponents.

Read alsoTrump puts forward own Miami-area golf course for next G7 summit – media

"I announced that I would be willing to do it at no profit or, if legally permissible, at zero cost to the USA. But, as usual, the Hostile Media & their Democrat Partners went crazy!" he wrote on Twitter on October 20.

"....Therefore, based on both Media & Democrat Crazed and Irrational Hostility, we will no longer consider Trump National Doral, Miami, as the Host Site for the G-7 in 2020. We will begin the search for another site, including the possibility of Camp David, immediately," he added.

Trump first floated the idea in August after attending the G7 in France. The U.S. president said he would probably host next year's Group of Seven summit of the major industrialized countries at one of his own properties – the Trump National Doral golf resort near Miami.