private static void delete(File fileToDelete){
  if (!fileToDelete.delete()) {
    message("Unable to delete file: " + fileToDelete.getPath());
  }
}

private static void delete ( File fileToDelete ) { if ( ! fileToDelete . delete ( ) ) { message ( "Unable to delete file: " + fileToDelete . getPath ( ) ) ; } }
attempts to delete the given file and logs a message if it is not successful .
