Set an R2 bucket's lifecycle rules
One step with Cloudflare. We can help you get access.
Get something done
Set an R2 bucket's lifecycle rules
with Cloudflare
Use Cloudflare: its Cloudflare R2 Bucket API lets you set an R2 bucket's lifecycle rules in a single step (PUT /accounts/{account_id}/r2/buckets/{bucket_name}/lifecycle). capabilities.work can help you get signed up and connected.
- How do I expire objects in an R2 bucket after a certain time?
- Can I transition old objects to Infrequent Access storage automatically?
Say it to your AI assistant
- Set lifecycle rules {rules} on bucket {bucket_name} in account {account_id}.
- Replace the object expiration and transition rules on {bucket_name} in {account_id}.
For your developer
PUT /accounts/{account_id}/r2/buckets/{bucket_name}/lifecycle in Cloudflare R2 Bucket API. Full spec on APIs.io.