aws s3 rb s3://<bucket>
aws s3 rb s3://<bucket> [--force]
Risk: Can lose work
What it does
Deletes a bucket. With --force, it deletes every file inside first.
When to use it
To clean up after practice. Treat it as final; check the name twice.
Example
$ aws s3 rb s3://amzn-s3-demo-bucketRemove an empty bucket.
$ aws s3 rb s3://amzn-s3-demo-bucket --forceDelete every file, then the bucket.
Learn it in: S3 buckets and Block Public Access · Official docs