npx wrangler r2 object delete my-assets/logo.png

Category: Cloudflare

npx wrangler r2 object delete my-assets/logo.png

Delete an object from R2

Permanently removes the object at my-assets/logo.png. There is no undo and no versioning by default, so a deleted asset breaks any URL or Worker serving it. --force skips the confirmation prompt for scripts. Double-check the bucket and key before running.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.