delete

open fun delete(path: File): Boolean

Deletes a file or folder, even if the folder is not empty.

Return

false if the file or folder was found, but could not be deleted.

Parameters

path

the path to be deleted.