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.

Object → Delete

AI-generated

Summary

Delete an object from a Cloudflare R2 bucket

Inputs

  • bucketName (required) — Name of the R2 bucket containing the object
  • objectKey (required) — Key (path/filename) of the object to delete

Output shape

JSON object indicating success, containing a message field

On success returns {success:true, message:'Object deleted'}; errors are thrown and not captured in the response body

Examples

Example 1: Delete a specific file

Resource: Object, Operation: Delete, Bucket Name: my-bucket, Object Key: folder/file.txt

Discussion