Skip to content

Instantly share code, notes, and snippets.

@tianchu
Created July 17, 2019 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tianchu/cd887e3044c255c15ed7699ed1570ea1 to your computer and use it in GitHub Desktop.
Save tianchu/cd887e3044c255c15ed7699ed1570ea1 to your computer and use it in GitHub Desktop.
Force delete all S3 buckets
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