Created
May 10, 2014 10:09
-
-
Save dbrock/fb3b2541654977216282 to your computer and use it in GitHub Desktop.
Delete an AWS S3 bucket and all its contents
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
s3nuke() { s3cmd ls -r $1 | tee /dev/stderr | cut -c30- | | |
tr '\n' '\0' | xargs -0 -n4 -P16 -t s3cmd del && s3cmd rb $1; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment