Hello, anyone know how to remove domain from R2? I need to use it on other bucket...but can't remove

Hello, anyone know how to remove domain from R2? I need to use it on other bucket...but can't remove from existing. The domain was added by R2. When I try remove from DNS even, it just sends me back here....
15 Replies
Unknown User
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
nolimits4web
nolimits4web•16mo ago
Hello everyone 👋 I think I’m doing something wrong but whatever i tried i can’t purge cache for the single file in r2 storage. - I’ve added custom domain for my r2 storage at cdn.sub.main.com. - Uploaded the file which is available at cdn.sub.main.com/file.js. Rewriting the same file with S3 API or manually in dashboard doesn’t clean its cache and still serves the old version. - tried to use purge cache API to purge cache for specified file passing https://cdn.sub.main.com/file.js doesn’t work. Same if i pass that file URL through cloudflare dashboard in Caching → Configuration → Custom purge. Cache stays there It works only if i hit purge everything but its not an option for me. So maybe there is a some specific URL for that file to purge its cache correctly or is there another option to do that? Please help 😊
Karew
Karew•16mo ago
How long are you waiting? Cache purges can take like ~30 seconds, or maybe more if you have Tiered Cache turned on
nolimits4web
nolimits4web•16mo ago
I waited for 1 day, no effect)) Purge Everything works immediately I waited for 1 day, no effect)) Purge Everything works immediately
nagyt234
nagyt234•16mo ago
HI everybody! Could somebody send me a simple curl example to list R2 buckets thriough S3 API. I've never used S3 and I have no idea how to to do it.
Unknown User
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Karew
Karew•16mo ago
It’s IMO not the most ideal way to back up personal files, but if it’s currently cheaper for you, go for it
leostera
leostera•16mo ago
hi folks, is there a quick way to empty a bucket?
Karew
Karew•16mo ago
Rclone's purge command
leostera
leostera•16mo ago
oops – i removed the bucket with purge is there a recommended way of using r2 to setup a cdn? I'm coming from s3+cloudfront
Karew
Karew•16mo ago
If you add a custom domain to an R2 bucket in your settings, you have the full Cloudflare CDN and all of the cache rules, security tools, etc available to your bucket
leostera
leostera•16mo ago
cool, okay, so it should be set up then! the reason i was dubious i did the write thing is that i'm seeing a LOT of lag/delay from writing to being able to read
Unknown User
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Karew
Karew•16mo ago
I think you’d have to enforce that at upload time. I’m not aware of any kind of automated rule like that
Unknown User
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server