code: public void cleanup() {
          List<String> keys = new ArrayList<>(created.keySet());
          keys.sort(String::compareTo);
          for (String key : keys) {
              created.remove(key)
                  .stream()
                  .sorted(Comparator.comparing(HasMetadata::getKind))
                  .forEach(metadata -> {
                      log.info(String.format("Deleting %s : %s", key, metadata.getKind()));
                      deleteWithRetries(metadata);
                  });
          }
      }
docs: Removes all resources deployed using this class.