Deleting an Amazon S3 Bucket

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Creating an Amazon S3 Bucket
lock
Creating a Folder inside an Amazon S3 Bucket
lock
Uploading a File to Amazon S3
lock
Granting Public Access to an Amazon S3 Object
lock
Changing the Metadata of an Amazon S3 Object
lock
Deleting an Amazon S3 Bucket
Need help? Contact our support team

Here you can find the instructions for this specific Lab Step.

If you are ready for a real environment experience please start the Lab. Keep in mind that you'll need to start from the first step.

Introduction

You can delete an Amazon S3 bucket using the S3 console. You will delete all objects within the bucket as well.

 

Instructions

1. In the AWS Management Console search bar, enter S3, and click the S3 result under Services:

alt

From the top level of the S3 console, notice the Delete button is not actionable.

 

2. Check the name of your bucket to select it:

alt

 

3. With the bucket selected, click Empty:

alt

The Empty bucket form page will load.

It's not possible to delete a bucket that contains objects.

 

4. To confirm that you want to delete all objects in this bucket, in the textbox at the bottom, enter permanently delete and click Empty:

alt

 

5. To exit the empty bucket page, at the top-right, click Exit:

alt

You will be returned to the Buckets page.

 

6. To delete your bucket, select it in the list, and click Delete

alt

 

7. To confirm that you want to delete the bucket, in the textbox, enter the name of your bucket:

alt

 

8. Click Delete bucket to delete the bucket.

Warning: Make sure to delete all the files/folders inside the bucket before deleting it, otherwise AWS won't allow you to delete the S3 bucket.

Important! Notice the message from AWS: "Amazon S3 buckets are unique. If you delete this bucket, you may lose the bucket name to another AWS user."

If retaining the bucket name is important to you, consider using the Empty bucket feature and not actually deleting the bucket.

Validation checks
1Checks
Deleted the Amazon S3 Bucket

Check if the Amazon S3 bucket has been deleted

Amazon Simple Storage Service (S3)