Add a lifecycle rule for GCP
Learn how to set a lifecycle ot time-to-live (TTL) rule in the staging bucket.
To add a rule:
- In the Google Console, select Cloud Storage.
- In the Buckets page, select the bucket for which you want to create a lifecycle rule.
- In the Bucket details page, select LIFECYCLE.
- Select ADD A RULE.
- In the Add object lifecycle rule page, select Delete object.
- Select CONTINUE.
- Select Age.
- Enter the number of days for which you want to retain data.
- Select CREATE.