delete

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

Deletes a file or directory specified by the given parent path and name. The deletion is performed in an IO-optimized context. If the target is a directory, it will be deleted recursively.

Parameters

parent

The parent path in which the file or directory resides.

name

The name of the file or directory to be deleted.