Cloudflare r2 doesn't delete the object from bucket

I use @aws-sdk/client-s3 and use DeleteObjectCommand. The response was success but after i check in its still in bucket tho
8 Replies
Honk!
Honk!OP3mo ago
is this about cache or something i checked out with HeadObjectCommand it shows as deleted but in dashboard i can still see the object
Sem
Sem3mo ago
It can take some time to update the dashboard
Honk!
Honk!OP3mo ago
For testing purposes, I made my R2 bucket public with Custom Domains from the R2 dashboard. Now I need a feature for users where they can make their images public/private (like Facebook). For this reason, I believe I should make the bucket private and point the CDN through my API to handle access control, right? If yes, does Cloudflare allow this? I heard something about CF not wanting you to point R2 objects directly with CDN. @Sem
Sem
Sem3mo ago
Hm Do you have any way of cache or developement mode enabled?
Honk!
Honk!OP3mo ago
nah i didn't change any settings its default and using s3 api currently also disabled the custom domain too estimated?
Hello, I’m Allie!
What if you do a ListObjects command?
Honk!
Honk!OP3mo ago
Well I think it doesn’t delete if its a problem with caching etc. , I still see the object in my dashboard on cloudflare sorry for late response, i was out of town so it still shows and doesn't deletes from the bucket i can see thay on dashboard solved the problem it was a compatibility issue with s3 package also while testing i encountered a new bug tho
Honk!
Honk!OP3mo ago
those are undeletable and it kinda stuck tho like for a straight 2 day somehow
No description

Did you find this page helpful?