Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

S3 versioning - why leave an expired delete marker behind?

I'm adding a lifecycle rule for a versioned bucket, and I'm confused about this:

enter image description here

Specifically, the "remove expired object delete marker" option. Why would one not want to remove that? If I have an object with just one version, and I delete that object/version, five days later it will be permanently deleted. Then there's a delete marker hanging around pointing to nothing, so what's the point of keeping it?

like image 811
ffxsam Avatar asked Jan 03 '17 03:01

ffxsam


1 Answers

Amazon S3 will not automatically delete expired object delete markers. The lifecycle policy provides a means to do so.

Deleting the last version of an object that has a delete marker will merely delete the object. It does not trigger an action on S3 to determine whether there are any expired delete markers. So, yes, the lifecycle rule is worth implementing if the bucket is versioned and versions of objects are often deleted.

like image 65
John Rotenstein Avatar answered Sep 20 '22 11:09

John Rotenstein