rm

fun rm(vararg locations: Path)

Deletes one or more files or directories (and everything underneath them). If any file or sub-file cannot be removed, throws IOException with details.

Throws

IOException

if any of the given files (or their descendants) cannot be fully removed.