Home > Software engineering >  AWS S3: Lifecycle rules for permanently deleting delete markers
AWS S3: Lifecycle rules for permanently deleting delete markers

Time:11-28

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.

CodePudding user response:

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.

  • Related