Java Utililty Methods Force Delete on Exit

List of utility methods to do Force Delete on Exit

Description

The list of methods to do Force Delete on Exit are organized into topic(s).

Method

voidforceDeleteOnExit(File file)
Schedules a file to be deleted when JVM exits.
if (file.isDirectory()) {
    deleteDirectoryOnExit(file);
} else {
    file.deleteOnExit();
voidforceDeleteOnExit(File file)
force delete file or directory
if (file.isDirectory()) {
    deleteDirectoryOnExit(file);
} else {
    file.deleteOnExit();
voidforceDeleteOnExit(File file)
force Delete On Exit
if (file.isDirectory()) {
    deleteDirectoryOnExit(file);
} else {
    file.deleteOnExit();