For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

delete

abstract fun delete(action: Action<in DeleteSpec>): WorkResult(source)

Deletes the specified files. The given action is used to configure a DeleteSpec, which is then used to delete the files.

Return

WorkResult that can be used to check if delete did any work.

Since

6.0

Parameters

action

Action to configure the DeleteSpec