delete

open fun delete(path: File): Boolean

Deletes a file or folder, even if the folder is not empty. The operation will be performed on an io thread to adhere to the strict mode policy. The calling thread will be blocked until the operation is complete.

Return

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

Parameters

path

the path to be deleted.