code: public void deleteById(String id) {
      if (idToVersion.containsKey(id)) {
        String version = idToVersion.remove(id);
        expirationVersion.remove(version);
        versionToItem.remove(version);
        if (collectionCachePath != null
            && !collectionCachePath.resolve(version).toFile().delete()) {
          log.debug("couldn't delete " + version);
        }
      }
    }
docs: Delete by id.
  
  @param id the id