delete

abstract suspend fun delete(parent: Path, name: String)(source)

Deletes a child file or directory with the specified name from the parent directory.

Parameters

parent

The path to the parent directory from which the file or directory should be deleted.

name

The name of the file or directory to be deleted.