delete

abstract fun delete(path: <Error class: unknown class>, mustExist: Boolean = false)

This will delete the content of the given file path

Parameters

path

the path to be deleted

mustExist

whether it is certain that path exists before the deletion