Created
June 9, 2017 21:32
-
-
Save gaboesquivel/4f68b75653d1e1fbb822ef1d9615b263 to your computer and use it in GitHub Desktop.
Delete all buckets in S3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws s3api list-buckets | jq -r ".Buckets[] | .Name" | while read -r line; do aws s3 rb s3://$line --force; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment