delete

open fun delete(path: String, mustExist: Boolean = true)

Delete a file at path.

Parameters

path

fully qualified path of the file to delete

mustExist

if true, throws when the file does not exist