npx wrangler r2 bucket delete my-assets

Category: Cloudflare

npx wrangler r2 bucket delete my-assets

Delete an R2 bucket

Permanently removes the bucket, but only if it is empty; R2 refuses to delete a bucket that still holds objects. Delete the contents first with `wrangler r2 object delete` or the API, then run this. There is no recycle bin, so export anything valuable first.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.