> +
> +   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);

I think that the page size is the default defined by 
`org.jclouds.openstack.swift.options.ListContainerOptions#getMaxResults`, which 
is 10000.

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

Reply via email to