code: public static boolean deleteRecursive(final File file) {
  		boolean result = true;
  		if (file.isDirectory()) {
  			for (final File inner : file.listFiles()) {
  				result &= deleteRecursive(inner);
  			}
  		}
  		return result & file.delete();
  	}
docs: Deletes a file or directory.
  If the file is a directory it recursively deletes it.
  @param file file to be deleted
  @return true if all the files where deleted successfully.