Remove a bucket after it has been emptied.
Section: S3API Bucket Commands
Delete an empty bucket
bash
bash
aws s3api delete-bucket --bucket my-bucketExplanation
The bucket must be empty before deletion succeeds.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing S3API Bucket Commands