How to delete a file using Ant

Syntax:


<delete file="FILE_NAME" />

The delete task has the parameter file, that is used to pass the new name of the file to delete. By default is an error happens when deleting the file the script will stop.

The delete task has the parameter file, that is used to pass the new name of the file to delete. By default is an error happens when deleting the file the script will stop.


References:

Apache Ant

Ant delete

Recent Comments