private void clearPreviousInstall(Path installDir) throws IOException {
    // Remove installs from previous runs in the same folder
    if (Files.exists(installDir)) {
      logger.info("Deleting previous install folder {}", installDir);
      deleteDirectory(installDir.toFile());
    }
  }
Cleans up the installation by deleting the extracted module and downloaded installation folders
geode-assembly/geode-assembly-test/src/main/java/org/apache/geode/session/tests/ContainerInstall.java