- 07 Jun 2024
- 1 Minute to read
- Print
- PDF
Life Cycle Delete Markers
- Updated on 07 Jun 2024
- 1 Minute to read
- Print
- PDF
Veeam has cleared the use of Life Cycle rules to delete Delete Markers. There has been concern that deleting Delete Markers in Veeam buckets would have a negative effect. Veeam has approved deleting these markers.
Enabling the Deletion of Delete Markers
- Log in to the Wasabi Console with your credentials.
- Click Buckets in the Wasabi menu.
- Find the bucket in which you want to create the lifecycle policies. Clickto the right in the bucket row.
- Select Setting.
- Click the Lifecycle tab.
- You will need to name the rule and select Delete expired object delete markers.
- Click Create (at the bottom of the panel) to finish creating the rule. It will look like this:
ExpiredObjectDeleteMarker
The following is an in-depth explanation of ExpiredObjectDeleteMarker.
In a versioning-enabled bucket, a delete marker with zero noncurrent versions is referred to as the expired object delete marker. Include this Lifecycle action to direct S3 to remove the expired object delete markers.
If the current version has a well-defined lifecycle policy, the ExpiredObjectDeleteMarker action is not required because any expired object delete markers will be removed when the current version is removed.
This option is used to remove expired object delete markers when there are zero noncurrent versions, AND the current version does not have an expiration lifecycle policy. For example, assume an object has three versions (two noncurrent and one current version). If the current version is manually removed, a delete marker becomes the current version and the previous current version becomes noncurrent, resulting in three noncurrent versions. If a lifecycle policy is applied to this object that removes noncurrent objects after x-number of days, this would leave only an expired object delete marker as the current version and zero noncurrent versions. The ExpiredObjectDeleteMarker action is used to clean up the expired object delete markers that have zero noncurrent versions.
Policy to Remove Noncurrent Objects
The following is a policy to remove noncurrent objects after one day and to remove any expired delete markers. This will remove all noncurrent objects that expire. You have the option to keep some number of noncurrent objects by including this in the policy:
<NewerNoncurrentVersions>number-of-non-current-versions-to-keep</NewerNoncurrentVersions> <LifecycleConfiguration> |