MANILA — President Rodrigo Duterte of the Philippines has recalled his country’s ambassador to Canada after Ottawa failed to take back tons of rubbish it had dumped in the Southeast Asian country, the Philippine foreign secretary said Thursday.

The decision came after Canada missed a Wednesday deadline set by Mr. Duterte for Canada to remove more than 100 shipping containers filled with household trash that had made its way to the Philippines more than five years ago. The containers hold common household trash, including used bags and soiled diapers, but they were mislabeled as recyclable materials.

“At midnight last night, letters for the recall of our ambassador and consuls to Canada went out,” Foreign Secretary Teodoro Locsin said on Twitter. “They are expected here in a day or so. Canada missed the May 15 deadline. And we shall maintain a diminished diplomatic presence in Canada until its garbage is ship-bound there.”