deleteDirectory

Deletes the directory represented by the path and all of its contents. If the path is not a directory, it is deleted as a file.


fun deleteDirectory(directoryToBeDeleted: File): Boolean(source)

Recursively deletes

Return

true if deleted

Parameters

directoryToBeDeleted

the file reference to the directory to delete