Municipal Administration Minister K T Rama Rao, who held a video conference with municipal commissioners on the issue, said all towns would be declared to be ODF by August 15.
All municipalities must reach the target by that date, according to a state government release.
Departmental action would be taken against municipal commissioners who fail to achieve the target, he said,
There is no shortage of funds for the programme, the minister said.
The construction of toilets should not stop under any circumstances and every municipality must achieve the status of ODF on a war-footing, he said.
The minister directed the officials to focus on sanitation during the monsoon season, among other important measures, according to the release.