public void deleteAllVersionsOfJar(String jarName) {
    lock.lock();
    logger.info("Deleting all versions of jar: {}", jarName);
    String artifactId = JarFileUtils.toArtifactId(jarName);
    if (artifactId == null) {
      artifactId = JarFileUtils.getArtifactId(jarName);
    }
    logger.debug("ArtifactId to delete: {}", artifactId);
    try {
      for (File file : deployDirectory.listFiles()) {
        logger.debug("File in deploy directory: {} with artifactId: {}", file.getName(),
            JarFileUtils.toArtifactId(file.getName()));
        if (artifactId.equals(JarFileUtils.toArtifactId(file.getName()))) {
          logger.info("Deleting: {}", file.getAbsolutePath());
          FileUtils.deleteQuietly(file);
        }
      }
    } finally {
      lock.unlock();
    }
  }
@param jarName a user deployed jar name (abc.jar or abc-1.0.jar)
geode-deployment/geode-deployment-legacy/src/main/java/org/apache/geode/deployment/internal/JarDeployer.java