A US federal judge has struck down Donald Trump's $15bn defamation lawsuit against The New York Times, citing issues with its contents.

US District Judge Steven Merryday in his ruling on Friday said Trump had violated a federal rule requiring applicants to outline in a short and plain statement why they deserve relief from the court.

A legal complaint, the judge said, is not a protected platform to rage against an adversary. He gave Trump 28 days to file an amended complaint.

Trump signaled he would sue The New York Times earlier this week in a post on Truth Social, claiming the newspaper has been allowed to freely lie, smear and defame me for far too long.

A spokesperson for President Trump has said that he will continue to hold the Fake News accountable through this powerhouse lawsuit against the New York Times, and mentioned that his legal team will file an amended version to meet the judge's directions.

In its own statement, The New York Times welcomed the judge's quick ruling, which recognized that the complaint was a political document rather than a serious legal filing.

The paper had stated earlier this week that the lawsuit has no merit.

It lacks any legitimate legal claims and instead is an attempt to stifle and discourage independent reporting, the newspaper said in a statement earlier this week.

In his order on Friday, Judge Merryday stated that the lawsuit filed by Trump is repetitive and superfluous, and contains florid allegations.

The 85-page lawsuit was filed in federal court in Tampa earlier this week. It also names Penguin Random House LLC - the publisher of a book written by Times reporters last year - and accuses the newspaper of serving as a mouthpiece for Democrats.

Judge Merryday wrote in his ruling that even if Trump's allegations were proven to be true, and even if the lawsuit were interpreted in a generous and lenient manner, the way it was written violates court rules and is decidedly improper and impermissible.

Neither President Trump nor his lawyers have responded to Judge Merryday's decision yet.

The lawsuit comes amid criticism of the Trump administration for what opponents call a crackdown on media unfavourable to the president.

On Thursday, the US president suggested some TV networks should have their broadcast licenses taken away after ABC suspended late-night TV host Jimmy Kimmel shortly following threats from the Trump administration.

Kimmel's suspension came after he made comments about the Charlie Kirk murder suspect, suggesting Trump supporters had tried to characterise this kid (the suspect) as anything other than one of them.

Other late-night TV hosts backed Kimmel, with Stephen Colbert calling the removal of Kimmel blatant censorship.