Ask Your Question

To Delete a container that contains children

asked 2013-02-26 09:22:21 -0600

pushkarajs10 gravatar image

Hello, I want to delete a container that contains some objects.But when I tried to delete that container,Swift is not allowing to delete it directly because that container contains some objects.So to delete that container I have to first delete all objects.Then only I can delete that container.Is there any other method to delete container without deleting objects inside that container?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2013-02-26 19:05:36 -0600

torgomatic gravatar image

Nope. Only empty containers can be deleted.

Otherwise, you'd have orphaned objects hanging around consuming space, but without any references to them. It'd be an object leak, and nobody wants that.

edit flag offensive delete link more

answered 2013-02-26 20:38:09 -0600

clay-gerrard gravatar image

Well there is bulk request support ya?


I mean it basically does the same thing, but from the client perspective it may as well be magic... I dunno what version you're running, tho - bulk is pretty new (unreleased?)

edit flag offensive delete link more

answered 2013-02-27 02:40:07 -0600

pushkarajs10 gravatar image

Thanks Samuel Merritt, that solved my question.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-02-26 09:22:21 -0600

Seen: 151 times

Last updated: Feb 27 '13