Alex Levine
Alex Levine

Reputation: 1597

Expired objects do not delete from s3 bucket, been months

I set expiration dates on objects through the API. It's now May and many of these objects expired in March. All the docs say expired objects will be wiped on a daily basis but I think something is wrong.

enter image description here

Upvotes: 0

Views: 2315

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 270144

The Expires metadata field is used to control caching of objects in browsers and CDNs. It is not related to actually deleting objects from Amazon S3.

If you wish to automatically delete objects from Amazon S3 after a certain period of time, you should crate a Lifecycle Rule.

See: Object Lifecycle Management - Amazon Simple Storage Service

Upvotes: 1

Related Questions