code: public static boolean deleteDir(File dir) {
  		if (dir != null && dir.isDirectory()) {
  			String[] children = dir.list();
  			for (int i = 0; i < children.length; i++) {
  				if (!deleteDir(new File(dir, children[i])))
  					return false;
  			}
  		}
  		return dir.delete();
  	}
docs: Deletes the specified directory. Returns true if successful, false if not.
  
  @param dir Directory to delete.
  @return {@code true} if successful, {@code false} if otherwise.