removeAllFiles

open fun removeAllFiles(dir: File): Boolean

Removes all files and folders in the given directory recursively as well as removes itself.

Return

True if all delete operations were successful. False otherwise.

Parameters

dir

Directory to remove all files and folders recursively.