- 02 Jun 2023
- Print
- PDF
Object Lifecycle Management
- Updated on 02 Jun 2023
- Print
- PDF
The Object Lifecyle Management feature establishes a Lifecycle policy with rules to define actions that you want Wasabi to take during the life of an object. This feature replaces the need to manually delete an object after a retention period.
Creating a Lifecycle Rule
- Click
for the bucket and click Settings.
- Click the LIFECYCLE tab. The Lifecycle Policy panel is displayed. For example:The Lifecycle feature is only supported for new buckets. Create a new bucket in order to create and apply lifecycle rules.
- Click CREATE NEW RULE. The Lifecycle Rule Settings panel is displayed.
- Enter a name for the Lifecycle rule. For example:
- Choose the scope of the rule. You can:
— Limit the scope of the rule by using filters. Continue with Step 6.
— Apply the rule to all objects in the bucket. Skip to Step 7. - Filter options are provided when you choose to limit the scope of the rule. You can filter by a name prefix and/or the size of the object. For size, you can enter the minimum and/or maximum size in bytes, kilobytes, megabytes, or gigabytes.
- Check at least one of the Action options. Follow the on-screen instructions for the selected option(s), as described in Lifecycle Rule Actions below.
- Click CREATE.
A rule list is displayed. Each rule is shown with its name, status, scope, and action information.
Lifecycle Rule Actions
Each rule action is described below.
Expire current versions of objects
To expire the current versions of objects, specify when the objects become noncurrent. Either:
- Enter a value indicating the number of days after object creation, or
- Select a date in the calendar.
For versioned buckets, a delete marker is added and the current version of an object is retained as a noncurrent version. For non-versioned buckets, the object is permanently removed at the end of the specified period.
Permanently delete noncurrent versions of objects
To permanently delete previous versions of objects, enter a value indicating the number of days after which objects become noncurrent.
Optionally, you can enter a value to specify the number of newer versions to retain.
Delete expired object delete markers
This action removes expired object delete markers. An expired object delete marker is removed if all noncurrent versions of an object expire after deleting a versioned object.
Delete incomplete multipart uploads
To delete incomplete multipart uploads, enter a value indicating the number of days after which you want to end the multipart upload initiation and clean up incomplete multipart uploads.
This action will stop all incomplete multipart uploads and delete the parts associated with the multipart upload.
Editing a Rule
- Click
for the rule to access actions.
- Select Edit.
- Follow the steps for Creating a Lifecycle rule to change the settings.
Enabling or Disabling a Rule
- Click
for the rule to access actions.
- To change the rule status, select Enable or Disable, depending on the current status.Disabling a lifecycle rule might result in the retention of existing objects.
- Click ENABLE or DISABLE to confirm that you want to change the status.
The status of the rule will change accordingly in the rule list.
Deleting a Rule
- Click
for the rule to access actions.
- Select Delete.Deleting a lifecycle rule might result in the retention of existing objects.
- Click DELETE to confirm that you want to delete the rule.
The deleted rule is removed from the rule list.