How to delete an S3 bucket

From AWS CLI

Here is the command to delete an s3 bucket where bucketname is the name of the bucket that needs to be deleted.

aws s3api delete-bucket --bucket bucketname

From AWS Management Console

To delete a bucket from AWS Management Console, Select the bucket and choose ‘Delete’ on the top.

On the next screen, confirm the deletion by entering bucket name and choose ‘Confirm’.

See also  How to send a message to an SQS queue using Lambda when a file is uploaded to an S3 bucket