Lifecycle rules
Lifecycle rules move old files to a cheaper storage class, or delete them, after a number of days. Perfect for logs, exports and old backups.
In the bucket, open Settings > Lifecycle rules and click Add a rule.

- Folder: the rule applies to the files of this folder. Leave empty for every file of the bucket.
- Move to a cheaper storage class after a number of days, and/or
- Delete the files after a number of days (deleted for good).
- Click Save the rule.
Rules run once a day, at midnight UTC. A bucket can have up to 10 rules.
Storage classes
| Class | Storage, single region or Global | Storage, multi-region | Reading | Billed at least |
|---|---|---|---|---|
| Standard | $0.02 per GB per month | $0.025 per GB per month | Included | - |
| Infrequent access | $0.01 per GB per month | $0.015 per GB per month | $0.01 per GB | 30 days |
| Archive, instant read | $0.004 per GB per month | $0.006 per GB per month | $0.03 per GB | 90 days |
| Archive | $0.004 per GB per month | $0.006 per GB per month | Restore first | 90 days |
warning
An Archive file must be restored before it can be read, which can take several hours. Use Archive, instant read for files you may need quickly.
Good to know
- Without any rule, files stay in Standard until you delete them.