deleteFilesIfExist

fun deleteFilesIfExist(vararg files: Path)

Deletes all given Paths if they exist. Some may be null; they are ignored. After deletion, throws the first exception encountered (others suppressed) if any deletion failed.


fun deleteFilesIfExist(files: Collection<Path>)

Deletes all given Paths if they exist. After deletion, throws the first exception encountered (others suppressed) if any deletion failed.