President Trump said the leader of Turkey has reassured him that he will clean up what’s left of Islamic State terrorists in Syria after US troops withdraw from the Middle East country.

“President @RT_Erdogan of Turkey has very strongly informed me that he will eradicate whatever is left of ISIS in Syria,” Trump wrote on his Twitter account late Sunday. “And he is a man who can do it plus, Turkey is right ‘next door.’ Our troops are coming home!”

But Trump didn’t mention the 10,000 Kurdish troops who were fighting alongside the US-backed coalition against the Islamic State and who may now be vulnerable to attack from Turkish forces once the American military presence is removed.

Turkey considers the Kurdish fighters in the Syrian Democratic Forces to be part of an terrorist insurgency causing unrest in the country.

According to multiple reports, Turkish President Recep Tayyip Erdogan told Trump during a phone call Dec. 14 that if Trump pulled the 2,000 US troops out of Syria, Erdogan would finish off ISIS.

Erdogan also pledged to postpone a planned military operation against the Kurdish fighters in Syria.

“OK, it’s all yours. We are done,” Trump told him, CNN reported Monday.

Five days after the call with Erdogan, Trump announced in a tweet that he was removing the troops, claiming: “We have defeated ISIS in Syria, my only reason for being there during the Trump Presidency.”

The directive caught congressional lawmakers, Pentagon officials and many in his administration off guard.

A day later, Defense Secretary James Mattis announced his resignation in a letter that rebuked Trump for abandoning US allies while not doing enough to counter authoritarian regimes like Russia and China.

According to reports, Ankara over the weekend was reinforcing Turkish-backed Syria fighters with heavy weapons and armored vehicles and deploying more troops.

With wires