How do I delete Amazon S3 objects and buckets?

Last updated: 2021-01-05

I have Amazon Simple Storage Service (Amazon S3) objects and buckets that I don't need. How do I delete these resources?

Resolution

Note: If you receive errors when running AWS Command Line Interface (AWS CLI) commands, make sure that you’re using the most recent AWS CLI version.

To delete individual S3 objects, you can use the Amazon S3 console, the AWS CLI, or an AWS SDK.

To delete multiple S3 objects using a single HTTP request, you can use the AWS CLI, or an AWS SDK.

To empty an S3 bucket of its objects, you can use the Amazon S3 console, AWS CLI, lifecycle configuration rule, or AWS SDK.

To delete an S3 bucket (and all the objects that it contains), you can use the Amazon S3 console, AWS CLI, or AWS SDK.


Did this article help?


Do you need billing or technical support?