deleteSafely

fun <Error class: unknown class>.deleteSafely(): Boolean

Extension method to delete a file safely without throwing an exception, except CancellationException to cancel parent jobs.

Return

whether the file could be deleted or not.