R2 Bucket

Delete Multiple Objects from R2 Bucket

Changed on

Delete multiple objects from an R2 bucket.

delete/r2/buckets/{bucket_name}/objects

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
  • Auth: none declared

Path parameters

bucket_namestring required

Request body

string[] required

Array of object keys to delete

Response

Delete objects response.

successtrue required

Whether the API call was successful.

Example response

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

Changes