Created
July 17, 2019 15:47
-
-
Save tianchu/cd887e3044c255c15ed7699ed1570ea1 to your computer and use it in GitHub Desktop.
Force delete all S3 buckets
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 s3 ls | awk '{print $3}' | while read -r bucket; do aws s3 rb "s3://$bucket" --force ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment