Couldn't delete a bucket

Bucket.delete('some_bucket', :force => true) was failing with BucketNotEmpty, and I realized it was because delete_all was only deleting the first 1000 objects, then attempting to delete the bucket.

This worked for me.