delete

expect fun delete(): Boolean(source)

Deletes the file or directory denoted by this abstract pathname.

If this pathname denotes a directory, then the directory must be empty in order to be deleted.

Return

true if and only if the file or directory is successfully deleted; false otherwise.

actual fun delete(): Boolean(source)