code: public static void optimisticDelete(Path path) {
          if (path == null) {
              return;
          }
  
          try {
              Files.delete(path);
          } catch (IOException ignored) { }
      }
docs: Delete a file (not recursively) and ignore any errors.
  
  @param path the path to delete