Donald Trump has attacked the New York Times for allegedly foiling an attempt to kill the Isis leader Abu Bakr al-Baghdadi.

In a tweet issued on Saturday morning (22 July), he said: "The Failing New York Times foiled US attempt to kill the single most wanted terrorist, Al-Baghdadi. Their sick agenda over National Security."

It comes just days after Trump took part in a wide-ranging interview with the New York Times to discuss issues such as Europe, Isis and the economy.

His attack on the NYT was preceded by a a similar slight against the Washington Post where he said: "A new INTELLIGENCE LEAK from the Amazon Washington Post,this time against A.G. Jeff Sessions. These illegal leaks, like Comey's, must stop!"

It is unknown how the NYT may have foiled an attempt to kill al-Baghdadi; the last story the paper wrote about the Isis leader was on the 21 July which featured Defence Secretary Jim Mattis suggesting that despite earlier news reports, the jihadist was still alive.

The Failing New York Times foiled U.S. attempt to kill the single most wanted terrorist,Al-Baghdadi.Their sick agenda over National Security — Donald J. Trump (@realDonaldTrump) July 22, 2017

The latest tweets come just hours after press secretary Sean Spicer resigned from his post after "vehemently" disagreeing with the president over the appointment of Anthony Scaramucci as the White House communications director.

After his resignation, Trump praised Spicer saying: "Sean Spicer is a wonderful person who took tremendous abuse from the Fake News Media - but his future is bright!"