Cloudflare R2 Storage icon

Cloudflare R2 Storage

Interact with Cloudflare R2 object storage. Upload, download, manage files and buckets. Supports batch operations, multipart uploads, and can be used as a tool by AI Agents.

Bucket → Delete

AI-generated

Summary

Delete a Cloudflare R2 bucket.

Inputs

  • bucketName (required) — The name of the R2 bucket to delete. Must be unique across all R2.

Output shape

A JSON object with a success flag and a message, e.g. {"success": true, "message": "Bucket deleted"}

On success a message is returned; errors are thrown as NodeOperationError and not wrapped in a response body.

Examples

Example 1: Delete bucket named my-r2-bucket

Bucket Name = my-r2-bucket

Discussion