Cloudflare DevelopersCD
Cloudflare Developers4d ago
3 replies
polido

How to auto-delete r2 objects after 30 days of no access?

Hi! I’m trying to configure a lifecycle rule for my R2 bucket. Currently, I have a rule that deletes objects 30 days after they are uploaded, but what I actually want is for objects that haven’t been accessed for at least 30 days to be automatically deleted. How can I set this up in R2?
Was this page helpful?