Delete all s3 buckets under profile

aws s3
<p>Test before actually deleting. This removes all buckets. F up your account at your own risk. This might take a while.</p> <p>To delete all buckets under a specific s3 profile run...</p> <pre><code>aws s3 ls --profile something | cut -d&quot; &quot; -f 3 | xa | cut -d&quot; &quot; -f 3 | xargs -I{} aws s3 rb --profile something s3://{} --force </code></pre> <p>From: https://github.com/aws/aws-cli/issues/2471</p>

© 2026 Code0x378