Deleting an Amazon S3 bucketEdit

Created , updated

Previously, you couldn’t delete a non-empty bucket from Amazon’s AWS management console, but you could easily do it via an SDK:

$ sudo gem install aws-sdk
$ irb -r rubygems -r aws-sdk
> AWS.config(:access_key_id => '...', :secret_access_key => '...')
> bucket =['...']
> bucket.delete! # objects deleted in batches of 1k; then bucket itself deleted

As of February 2014, it appears that you can delete non-empty buckets from the management console.