I have a S3 bucket which is version enabled, I want to permanently delete all the delete marked version objects from the S3 bucket using lifecycle rule.
Which of the below options we need to choose, in order to permanently delete the versions of the objects.
And also the delete marked objects may also be current version.
Let's understand what is non current version and current version?
Whenever versioned bucket object is deleted current object version becomes noncurrent, and the delete marker becomes the current version.
what is expired delete marker?
A delete marker with zero noncurrent versions is referred to as an expired object delete marker.
So option 4 and 5 will solve your purpose
Note: Lifecycle rule policies takes time to take effect as objects are queued and it happens in an asynchronous manner.