code: private static void deleteEveryIn(DirectoryStream<Path> caches) {
          for (Path notActualCache : caches) {
              LOGGER.debug("Deleting redundant cache dir {}", notActualCache);
              try {
                  FileUtils.deleteDirectory(notActualCache.toFile());
              } catch (IOException e) {
                  LOGGER.error("Can't delete cache dir <{}>", notActualCache, e);
              }
          }
      }
docs: Removes directories with caches
  
  @param caches paths to directories to be removed