Created
February 12, 2021 13:47
-
-
Save jcabrerizo/28a39ae675128e5207bc907da7572890 to your computer and use it in GitHub Desktop.
Delete not empty buckets using a pattern
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
| for bucket in $(aws --profile qa-test s3 ls | awk '{print $3}' | grep test-persistence-); do aws s3 --profile qa-test rb "s3://${bucket}" --force ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment