[ 
https://issues.apache.org/jira/browse/JCLOUDS-684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14109929#comment-14109929
 ] 

Andrew Gaul commented on JCLOUDS-684:
-------------------------------------

[~shrinand] Please investigate adding support for this and make an assessment 
of we will handle providers which support recursive delete natively and those 
for which jclouds must emulate it.  I suspect this pseudocode will suffice:

{noformat}
error = deleteBucket()
if (error == BucketNotEmpty) {
    clearContainer()
    error = deleteBucket()
}
return error
{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
>            Assignee: Shri Javadekar
>
> 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)

Reply via email to