Skip to content

Instantly share code, notes, and snippets.

@cupracer
Created February 22, 2018 09:43
Show Gist options
  • Save cupracer/c65adbcab6806c3f930bc1f7a232daaf to your computer and use it in GitHub Desktop.
Save cupracer/c65adbcab6806c3f930bc1f7a232daaf to your computer and use it in GitHub Desktop.
Delete or empty an AWS S3 bucket
# Source:
# https://docs.aws.amazon.com/AmazonS3/latest/dev/delete-or-empty-bucket.html
# empty a bucket
# aws s3 rm s3://bucket-name --recursive
# delete a bucket
# aws s3 rb s3://bucket-name --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment