Skip to main content

Job to Delete Cloudflare Files

What's the WP job/function that runs periodically to delete the files from Cloudflare after the actual post is deleted? Do we need to setup a cron? I waited 4-5 hours during testing and then deleted the orphan files manually from the Cloudflare buckets.

Eric

Yes, our legacy images remain in Cloudflare R2 after their WordPress posts are deleted, which is causing R2 to grow with orphaned files. Is there a built-in or planned solution to remove unused objects automatically?