In a speech in Ankara, Erdogan stepped up his denunciations of Western policy in the refugee crisis, confirming he had threatened EU leaders at a summit meeting in November that Turkey could say "goodbye" to the refugees.
But in a separate move, NATO agreed to send a naval group "without delay" to the Aegean to crack down on the people smugglers who have helped hundreds of thousands of migrants cross to EU territory in the last year.
Alarm is growing in EU capitals that thousands of migrants are still crossing the Aegean daily from Turkey after over a million made the perilous journey last year.
But Turkey, already home to some three million refugees, is also under EU and UN pressure to take in tens of thousands of Syrian refugees fleeing regime advances in the Aleppo region.
Erdogan sought to turn the tables on the EU by saying Turkey had every right to turf the refugees out of the country if it so wished.
"We do not have the word 'idiot' written on our foreheads. We will be patient but we will do what we have to. Don't think that the planes and the buses are there for nothing," Erdogan said.
Greek website euro2day.gr had earlier this week reported that at the G20 summit in Antalya in November Erdogan had angrily threatened to EU Commission president Jean Claude Juncker that Turkey could send the refugees to Europe.
The website had quoted Erdogan as telling Juncker: "We can open the doors to Greece and Bulgaria anytime and put the refugees on buses."
"I am proud of what I said. We have defended the rights of Turkey and the refugees. And we told them (the Europeans): 'Sorry, we will open the doors and say 'goodbye' to the migrants'," Erdogan said in his speech Thursday.
He also lashed out at UN calls on Turkey to take in tens of thousands of Syrian refugees from Aleppo region massed on the border with Turkey, saying the United Nations has spent less than half a billion dollars in the crisis.
"Shame on you! Shame on you!" said Erdogan, saying the UN should be telling states to take in refugees from Turkey.
Turkey is already hosting 2.5 million refugees from Syria's civil war and hundreds of thousands from Iraq and is increasingly bitter it has been left to shoulder the burden.
- AFP