public static void deleteFileOrLog(File file){
  if (!file.delete()) {
    logger.warn(FAILED_DELETING_FILE + file.getPath());
  }
}

public static void deleteFileOrLog ( File file ) { if ( ! file . delete ( ) ) { logger . warn ( FAILED_DELETING_FILE + file . getPath ( ) ) ; } }
delete a file from the file system or log the failure if unable to delete it .
