Skip to content

Instantly share code, notes, and snippets.

@gaboesquivel
Created June 9, 2017 21:32
Show Gist options
  • Save gaboesquivel/4f68b75653d1e1fbb822ef1d9615b263 to your computer and use it in GitHub Desktop.
Save gaboesquivel/4f68b75653d1e1fbb822ef1d9615b263 to your computer and use it in GitHub Desktop.
Delete all buckets in S3
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