2 Answers
- Newest
- Most votes
- Most comments
2
I ran into the same issue, and the documentation didn't provide a clear solution.
For a Versioned Bucket, I had to create two Lifecycle Rules.
Rule 1: Delete After 100 Days
Actions:
- Expire current versions of objects
- Permanently delete noncurrent versions of objects
Configure:
- Days after object creation ( 100 days )
- Days after objects become noncurrent ( 1 day )
Rule 2: Cleanup Delete Markers
Actions:
- Delete expired object delete markers or incomplete multipart uploads
Configure:
- Delete expired object delete markers
- Delete incomplete multipart uploads ( 1 day )
answered 2 years ago
0
https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configuration-examples.html
When you specify the Days tag, Amazon S3 automatically performs ExpiredObjectDeleteMarker cleanup when the delete markers are old enough to satisfy the age criteria.
No special configuration required. You can either clean it up as part of the existing retire-current-objects rule, or create a special rule that explicitly targets expired delete markers sooner.
answered 3 years ago
Relevant content
- AWS OFFICIALUpdated 6 months ago

I don't understand what that quote from the documents is supposed to mean. What is the "Days tag" in this context?
Is that the "Days after object creation" parameter in the "Expire current versions of objects" action?