Gradle Delete Task

From NovaOrdis Knowledge Base
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
}