Gradle Delete Task
Jump to navigation
Jump to search
External
Internal
Overview
Deletes files or directories.
task delete(type: Delete) {
delete 'some-folder', 'some-file'
followSymlinks = true
}
Example of a "clean" task implementation:
task clean(type: Delete) {
delete buildDir
}