code: @Override
      public void purgeResources() throws IOException {
          File cacheDirectory = getSystemConfiguration().getCacheDirectory();
  
          for (File cacheFile : cacheDirectory.listFiles()) {
              if (cacheFile.isDirectory()) {
                  ResourceType rt = ResourceType.fromFolder(cacheFile.getName());
                  if (rt != null) {
                      // we own it, so delete it.
                      deleteDirectory(cacheFile);
                      reportable.output("Deleted cache directory: "
                              + cacheFile.getAbsolutePath());
                  }
              }
          }
      }
docs: {@inheritDoc}