Need help deleting R2 objects

I'm using Microfeed (https://github.com/microfeed/) to add objects to R2. Microfeed, which is intended as a publishing tool for individual podcasters, does not include a way to delete objects and the author argues coherently against deletion, but my use case is different. I'm allowing users of my app to upload some large objects that they may want to delete. So I installed Wrangler and somehow got the authentication to work, and was able to issue a command to delete an object which looks as if it worked. At the command line I did: npx wrangler r2 object delete <my-bucket>/production/media/audio-80ee6537b2e41406f6889f5bf3c16bf0.mp3 and I got: ⛅️ wrangler 3.18.0 (update available 3.22.4) ------------------------------------------------------- Deleting object "production/media/audio-80ee6537b2e41406f6889f5bf3c16bf0.mp3" from bucket "<my-bucket>". Delete complete. But that did not delete the object. Minutes later, I can still play that mp3 and it remains listed in my Cloudflare R2 dashboard. What am I doing wrong?
1 Reply
unjobs
unjobsOP12mo ago
I've also tried with the S3 Node.js API:
{
'$metadata': {
httpStatusCode: 200,
requestId: undefined,
extendedRequestId: undefined,
cfId: undefined,
attempts: 1,
totalRetryDelay: 0
},
Deleted: [
{
Key: '/production/media/document-075f14634234790a4f9f813c291b0d80'
}
]
}
{
'$metadata': {
httpStatusCode: 200,
requestId: undefined,
extendedRequestId: undefined,
cfId: undefined,
attempts: 1,
totalRetryDelay: 0
},
Deleted: [
{
Key: '/production/media/document-075f14634234790a4f9f813c291b0d80'
}
]
}
and again, the object is not deleted. Ticket ID is 3107471 if anyone from Cloudflare sees this..
Want results from more Discord servers?
Add your server