import java.io.File;
public class Util{
public static boolean recursiveDeleteFile(File path) {
if( path.exists() ) {
if (path.isDirectory()) {
File[] files = path.listFiles();
for(int i=0; i if(files[i].isDirectory()) {
recursiveDeleteFile(files[i]);
} else {
files[i].delete();
}
}
}
}
return(path.delete());
}
}