Table of Contents
API Documentation: | Delete |
---|
Deletes files or directories. Example:
task makePretty(type: Delete) { delete 'uglyFolder', 'uglyFile' followSymlinks = true }
Be default symlinks will not be followed when deleting files. To change this behavior call
Delete.setFollowSymlinks(boolean)
with true. On systems that do not support symlinks,
this will have no effect.
Property | Description |
delete | The set of files which will be deleted by this task. |
followSymlinks | Returns if symlinks should be followed when doing a delete. |
targetFiles | The resolved set of files which will be deleted by this task. |
Method | Description |
delete(targets) | Adds some files to be deleted by this task. The given targets are evaluated as per |
FileCollection
targetFiles
(read-only)
The resolved set of files which will be deleted by this task.
Adds some files to be deleted by this task. The given targets are evaluated as per Project.files(java.lang.Object[])
.