<delete>Deletes a file, fileset, or directory. Deletes either a single file, all files in a specified directory and its subdirectories, or a set of files specified by one or more filesets.NOTEIf the file attribute is set, then the fileset contents will be ignored. To delete the files in the fileset, omit the file attribute in the delete element.| Attribute | Description | Required |
|---|
| file | The file to delete. | False | | dir | The directory to delete. | False | | failonerror | Determines whether task failure stops the build or is just reported. Default is "true." | False | | verbose | Task reports detailed build log messages. Default is "false." | False | | if | If true then the task will be executed; otherwise skipped. Default is "true." | False | | unless | Opposite of if. If false then the task will be executed; otherwise skipped. Default is "false." | False |
Example <delete dir="${build.dir}" failonerror="false"/> <delete> <fileset> <includes name="${basename}-??.exe"/> <includes name="${basename}-??.pdb"/> </fileset> </delete>
|