remove_bucket failed: s3://foobar-12341234 An error occurred (BucketNotEmpty) when calling the DeleteBucket operation: The bucket you tried to delete is not empty. You must delete all versions in the bucket.
Arrrggghh!! 😡 😡 😡 😡
Do you hate using the console to empty and then delete versioned S3 Buckets? Never fear! This little CLI will do all the heavy lifting for you!
-
Install
go get github.com/tantona/delete-bucket
-
Delete a bucket!
delete-bucket --name foobar
```sh
usage: delete-bucket [<flags>] <bucket name>
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-v, --verbose enable verbose logging
-p, --profile="default" aws profile name
-r, --region="us-east-1" aws region
Args:
<bucket name> name of s3 bucket
```