public static void deleteDirectoryIgnoreException(File directory){
  try {
    FileUtils.deleteDirectory(directory);
  }
 catch (  Exception e) {
    LOGGER.warn(String.format("Failed to delete \"%s\" directory.",directory),e);
  }
}

public static void deleteDirectoryIgnoreException ( File directory ) { try { FileUtils . deleteDirectory ( directory ) ; } catch ( Exception e ) { LOGGER . warn ( String . format ( "Failed to delete \"%s\" directory." , directory ) , e ) ; } }
deletes a directory . this method does not fail in case deletion is unsuccessful , but simply logs the exception information as a warning .
