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 allocate a new Elastic IP and associate it to an EC2 Instance