The City Corporation on Thursday warned the Antony Waste Management Company, which is maintaining the solid waste management in the city, of cancelling the contract if it resorted to protest or boycotted the work under the pretext that it will have to get dues from the corporation.