code: public static void emptyAndDelete(File fileOrDir) {
  		if (fileOrDir.isDirectory()) {
  			File[] files = fileOrDir.listFiles();
  			for (File file : files) {
  				emptyAndDelete(file);
  			}
  		}
  		fileOrDir.delete();
  	}
docs: Deletes a file or directory.
  
  When deleting a directory files and subdirectories in it are also
  deleted.
  
  @param fileOrDir