Ask Your Question
0

To Delete a container that contains children

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

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
0

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

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
0

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

clay-gerrard gravatar image

Well there is bulk request support ya?

common.middleware.bulk

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?)

https://review.openstack.org/#/c/21454/

edit flag offensive delete link more
0

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

pushkarajs10 gravatar image

Thanks Samuel Merritt, that solved my question.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 45 times

Last updated: Feb 27 '13