How to Manage Unused Files in Cloudflare R2?
I’ve noticed an issue with Cloudflare R2 storage. When someone uploads an image but doesn’t publish the post, the image still remains in R2. Similarly, if a post is published with an image and later deleted, the image also stays in R2. Over time, this causes unnecessary storage usage.
On top of that, manually deleting files from R2 is quite difficult and time-consuming.
Is there any proper solution or best practice to handle this situation?
Good catch.
write a plugin maybe :-)
