deleteContents

abstract fun deleteContents(dir: <Error class: unknown class>, mustExist: Boolean = false)

This will delete recursively the given dir and all its content

Parameters

dir

the directory to be deleted

mustExist

whether it is certain that dir exists before the deletion