delete

common
abstract fun delete(path: Path)

Deletes the file or directory at path.

Throws

if there is nothing at path to delete, or if there is a file or directory but it could not be deleted. Deletes fail if the current process doesn't have access, if the file system is readonly, or if path is a non-empty directory. This list of potential problems is not exhaustive.

js
abstract fun delete(path: Path)

Throws