mangotango
mangotango

Reputation: 376

AWS S3: Lifecycle rules for permanently deleting delete markers

I currently have versioning set up and thus a delete results to a delete marker and not to a permanent delete, which is what I like.

Is there a lifecycle rule that I can add so that after 30 days since the delete markers were created, they are permanently deleted?

I only want to do this for delete markers, not for expiring anything else.

Upvotes: 2

Views: 3244

Answers (2)

Nuthinking
Nuthinking

Reputation: 1331

Here is the rule configuration using the Management Console:

Management Console screenshot

Upvotes: 0

kgiannakakis
kgiannakakis

Reputation: 104198

Straight from the documentation:

 <LifecycleConfiguration>
    <Rule>
        ...
        <NoncurrentVersionExpiration>     
            <NoncurrentDays>30</NoncurrentDays>    
        </NoncurrentVersionExpiration>
    </Rule>
 </LifecycleConfiguration>

Important thing to note is:

A delete marker with zero noncurrent versions is referred to as an expired object delete marker.

Upvotes: 2

Related Questions