[
https://issues.apache.org/jira/browse/JCLOUDS-684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14106416#comment-14106416
]
Andrew Gaul commented on JCLOUDS-684:
-------------------------------------
[~shrinand] AzureBlobAsyncClient.deleteContainer implements this already. Look
at these wire logs from blobstore-cli:
{noformat}
$ blobstore --properties $PROPERTIES blob list container-name
3
2
1
$ blobstore --properties $PROPERTIES container delete container-name
- >> DELETE
https://account-name.blob.core.windows.net/container-name?restype=container
HTTP/1.1
- >> x-ms-version: 2009-09-19
- >> Date: Fri, 22 Aug 2014 03:37:12 GMT
- >> Authorization: SharedKeyLite
account-name:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- << HTTP/1.1 202 Accepted
- << Transfer-Encoding: chunked
- << x-ms-version: 2009-09-19
- << Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- << x-ms-request-id: 224ab5c0-ff76-417d-a78e-181fae3175ce
- << Date: Fri, 22 Aug 2014 03:37:12 GMT
- << Content-Type: application/unknown
{noformat}
> Add option to delete containers without deleting objects inside it
> ------------------------------------------------------------------
>
> Key: JCLOUDS-684
> URL: https://issues.apache.org/jira/browse/JCLOUDS-684
> Project: jclouds
> Issue Type: New Feature
> Components: jclouds-blobstore
> Affects Versions: 1.8.0
> Reporter: Shri Javadekar
> Fix For: 2.0.0
>
>
> Some blobstores such as Microsoft Azure[1] have the ability to delete
> containers even when they are not empty. These object stores simply return
> after marking the containers for deletion and asynchronously delete the blobs
> and container in which the blobs exist.
> jclouds should have an option by which calling deleteContainer() should
> simply issue the delete request to the blobstore. It should not internally
> try and delete all the blobs in the container.
> [1] http://msdn.microsoft.com/en-us/library/azure/dd179408.aspx
--
This message was sent by Atlassian JIRA
(v6.2#6252)