R2 Bucket

Delete Object from R2 Bucket

Changed on

Delete an object from an R2 bucket.

delete/r2/buckets/{bucket_name}/objects/{object_key}

Request

  • Base URL: /cdn-cgi/local/explorer/api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /cdn-cgi/local/explorer/api/r2/buckets/{bucket_name}/objects/{object_key}
  • Auth: none declared

Path parameters

bucket_namestring required
object_keystring required

Response

Delete object response.

successtrue required

Whether the API call was successful.

Example response

{
  "errors": [],
  "messages": [],
  "success": true
}

Changes