# delete

fun delete(vararg paths: Any): Boolean(source)

Deletes files and directories.

This will not follow symlinks. If you need to follow symlinks too use KotlinInitScript.delete.

#### Return

true if anything got deleted, false otherwise

#### Since

4.7

#### Parameters

paths

Any type of object accepted by KotlinInitScript.file

fun delete(configuration: DeleteSpec.() -> Unit): WorkResult(source)

Deletes the specified files.

#### Return

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

#### Since

4.7

#### Parameters

configuration

The block to use to configure the DeleteSpec.