public static boolean delete(File file) {
    if (file == null) {
      return false;
    }
    try {
      return file.delete();
    } catch (Exception e) {
      e.printStackTrace();
      return false;
    }
  }
Delete a file ignoring exceptions.

@param file to delete, can be <code>null</code>
geode-core/src/main/java/org/apache/geode/internal/util/LogFileUtils.java