archupsg03 commented on this pull request.


> +    * @param prefix
+    * 
+    */
+   private void removeObjectsWithPrefix(String container, String prefix) {
+      String nextMarker = null;
+      ObjectApi objectApi = api.getObjectApi(regionId, container);
+      do {
+         org.jclouds.openstack.swift.v1.options.ListContainerOptions 
listContainerOptions = prefix(prefix);
+         if (nextMarker != null) {
+            listContainerOptions = listContainerOptions.marker(nextMarker);
+         }
+         PageSet<? extends StorageMetadata> chunks = list(container, 
listContainerOptions);
+         Iterator<? extends StorageMetadata> iter = chunks.iterator();
+
+         while (iter.hasNext()) {
+            objectApi.delete(iter.next().getName());

Does DLO, bulk deletes  are also expected to delete only the manifest file ?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1090#discussion_r117208798

Reply via email to