Delete an Object from a Bucket
r2
// what it does
Removes a single object by key. Reach for it to clean up a stale asset or a bad upload during development or ops.
// shell
$ wrangler r2 object delete my-bucket/images/logo.png --remote// gotcha
There is no recursive or bulk delete in wrangler and R2 has no object versioning — the delete is permanent. To purge many objects use the S3 API (aws CLI / rclone) or an expiry lifecycle rule instead of looping this command.