Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't delete buckets with more than a thousand objects #12

Closed
PhilT opened this issue May 24, 2010 · 2 comments
Closed

Can't delete buckets with more than a thousand objects #12

PhilT opened this issue May 24, 2010 · 2 comments
Labels

Comments

@PhilT
Copy link

PhilT commented May 24, 2010

 s3.buckets.find('whatever').destroy(true) # whatever is a bucket with over 1000 objects

It seems it's waiting for all the objects in the bucket to be deleted but because the default limit is to only get 1000 objects it doesn't delete them all so s3 just sits there. If I delete the remaining objects with S3Fox the s3 gem completes.

I'll try to make a patch if no one gets around to it.

@elia
Copy link
Contributor

elia commented Oct 5, 2010

this is a bug in Bucket#objects too. It should fetch multiple times until the "IsTruncated" tag isn't preset, see: http://developer.amazonwebservices.com/connect/thread.jspa?messageID=56070&#56070

@qoobaa
Copy link
Owner

qoobaa commented Oct 9, 2010

Changes are on the master branch. Does it work properly now?

@qoobaa qoobaa closed this as completed Dec 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants