code: public static boolean delete(File f) throws IOException
  	{
  		assert (f.exists());
  
  		if (f.isDirectory())
  		{
  			FileUtils.deleteDirectory(f);
  			return true;
  		}
  		else
  		{
  			return f.delete();
  		}
  	}
docs: Deletes a local file or directory from the filesystem
  
  @param f
  File The file/directory to delete
  
  @return boolean True if the deletion was a success, otherwise false