> +
> +   private void removeObjectsWithPrefix(String container, String prefix) {
> +      String nextMarker = null;
> +      do {
> +         org.jclouds.openstack.swift.options.ListContainerOptions 
> listContainerOptions =
> +            withPrefix(prefix);
> +         if (nextMarker != null) {
> +            listContainerOptions = 
> listContainerOptions.afterMarker(nextMarker);
> +         }
> +
> +         PageSet<ObjectInfo> chunks = sync.listObjects(container, 
> listContainerOptions);
> +         for (ObjectInfo chunk : chunks) {
> +            sync.removeObject(container, chunk.getName());
> +         }
> +         nextMarker = chunks.getNextMarker();
> +      } while (nextMarker != null);

Is this only possible in a paged way? Would this benefit from being done in 
parallel?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/123/files#r5913632

Reply via email to