A lifecycle rule deletes objects automatically after a number of days, so temporary data clears itself out. The deletes are permanent, so choose the days with care; governance-locked versions stay in place until their retention ends. Lifecycle rules work on buckets TIR created, once they are Ready.
Add the rule
Section titled “Add the rule”- In the list, select the bucket and open its Bucket Lifecycle tab.
- Select Configure Lifecycle Rule.
- In Apply To, choose All Objects to apply the rule to every object in the dataset. Choose Objects with Prefix to apply it only to objects whose names start with a prefix.
- For Objects with Prefix, type the prefix, such as
logs/,temp/, orarchive/. Each prefix has one rule. - Enter Expiration Days, the number of days before TIR deletes the objects, from 1 to 365.
- Save the rule.
A bucket can have several rules, so you can use different prefixes to keep different data for different lengths of time.
Delete a rule
Section titled “Delete a rule”To change a saved rule, delete it and add a new one. Open the rule’s Actions menu, select Delete lifecycle policy, and confirm.
Check the rule
Section titled “Check the rule”The rule is listed under Bucket Lifecycle with its prefix and Expiration Days. You can manage rules only while the bucket is Ready.
TIR now deletes the objects under the rule once they are older than the rule’s Expiration Days. To control the versions of a versioned bucket, see Use object versioning. For help with a message, see Troubleshooting TIR Object Storage.
Was this page helpful?