deleteRecursively

JVM
1.0
fun File.deleteRecursively(): Boolean
(source)

Delete this file with all its children. Note that if this operation fails then partial deletion may have taken place.

Return true if the file or directory is successfully deleted, false otherwise.