Actions17
- Bucket Actions
- Object Actions
- Batch Operations Actions
Object → Delete
AI-generatedSummary
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