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 CORS

AI-generated

Summary

Delete the CORS configuration for an R2 bucket

Inputs

  • bucketName (required) — The name of the R2 bucket whose CORS configuration should be deleted

Output shape

an object containing a success flag and a message confirming deletion

Only a success message is returned; errors are propagated as exceptions

Examples

Example 1: Remove CORS rules from a bucket

Set bucketName to 'my-r2-bucket'

Discussion