List of utility methods to do Force Delete
boolean | forceDelete(File path) delete directory recursively. if (!path.exists()) return true; if (path.isDirectory()) for (File file : path.listFiles()) { if (file.toString().equals(".")) continue; if (file.toString().equals("..")) continue; ... |
void | forceDelete(final File file) force Delete if (file.exists()) { if (file.isDirectory()) { for (final File f : file.listFiles()) { forceDelete(f); try { if (!file.delete()) { ... |
void | forceDelete(final File file) Deletes a file. if (file.exists()) { if (file.isDirectory()) { for (final File c : file.listFiles()) { forceDelete(c); if (!file.delete()) { throw new IOException("Failed to delete " + file.getAbsolutePath()); ... |