private static void deleteFileWithValidation(final File file, final String fileNameForMessage)
      throws IOException {
    if (file.exists()) {
      if (!file.delete()) {
        throw new IOException(
            "Unable to delete " + fileNameForMessage + "'" + file.getCanonicalPath() + "'");
      }
    }
  }
Returns the PID file.

@return the PID file
geode-core/src/main/java/org/apache/geode/internal/process/FileControllableProcess.java