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(@Nullable paths: Array<@Nullable Any>): Boolean(source)

Deletes files and directories.

Return

true if anything got deleted, false otherwise

Since

0.9

Parameters

paths

Any type of object accepted by files