S3 Delete Objects

POST https://s3.{{region}}.backblazeb2.com/:bucket/?delete

Deletes multiple objects from a bucket in a single request. In the XML body, provide the objects keys and, optionally, version IDs if you want to delete a specific object version.

Request Params

KeyDatatypeRequiredDescription
deletenullMust be present to delete multiple objects.

HEADERS

KeyDatatypeRequiredDescription
x-amz-expected-bucket-ownernullOptional. Account ID of the expected bucket owner. If the bucket is owned by a different owner, a 403 Access Denied error will be returned.
x-amz-bypass-governance-retentionnullOptional. Specifies whether the object should be deleted even if there is a governance object lock in place.

RESPONSES

status: OK

"\u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?\u003e\n\u003cDeleteResult xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\"\u003e\n    \u003cDeleted\u003e\n        \u003cDeleteMarker\u003etrue\u003c/DeleteMarker\u003e\n        \u003cDeleteMarkerVersionId\u003e4_z6145af89f355ac2f74ed0c1b_f401a918cd72e68af_d20220128_m234522_c004_v0402003_t0046\u003c/DeleteMarkerVersionId\u003e\n        \u003cKey\u003eobject-1\u003c/Key\u003e\n    \u003c/Deleted\u003e\n    \u003cDeleted\u003e\n        \u003cDeleteMarker\u003etrue\u003c/DeleteMarker\u003e\n        \u003cDeleteMarkerVersionId\u003e4_z6145af89f355ac2f74ed0c1b_f401a918cd72e68b0_d20220128_m234522_c004_v0402002_t0049\u003c/DeleteMarkerVersionId\u003e\n        \u003cKey\u003eobject-2\u003c/Key\u003e\n    \u003c/Deleted\u003e\n\u003c/DeleteResult\u003e"