How do I delete Amazon S3 objects and buckets?

Last updated: 2019-05-30

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

Resolution

To delete individual S3 objects, you can use the Amazon S3 console, the AWS Command Line Interface (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, the AWS CLI, a lifecycle configuration rule, or an AWS SDK.

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


Did this article help you?

Anything we could improve?


Need more help?