DeleteMultipleObjects
- Print
- PDF
DeleteMultipleObjects
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Overview
Deletes objects by making a POST request with the specified bucket or path. The request must include the Content-MD5 header in addition to the x-amz-content-sha256 header. No parameters or payload is used for the operation.
Request
Syntax
POST https://{endpoint}/{bucket-name}/?delete= # path style
POST https://{bucket-name}.{endpoint}/?delete= # virtual host style
Examples
Request example
POST /example?delete= HTTP/1.1
Authorization: {authorization-string}
Host: kr.object.ncloudstorage.com
x-amz-date: 20161205T231624Z
x-amz-content-sha256: 3ade096cd9471017539ede10c4d8aa05a1ecd015a16f4f090e9fcee92a816cf4
Content-MD5: zhi+TmIAhD2U3GfoYayyTQ==
Content-Type: text/plain; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<Delete>
<Object>
<Key>surplus-bee</Key>
</Object>
<Object>
<Key>unnecessary-bee</Key>
</Object>
</Delete>
Response example
HTTP/1.1 200 OK
Date: Wed, 30 Nov 2016 18:54:53 GMT
Accept-Ranges: bytes
x-amz-request-id: a6232735-c3b7-4c13-a7b2-cd40c4728d51
Content-Type: application/xml
Content-Length: 207
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DeleteResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Deleted>
<Key>surplus-bee</Key>
</Deleted>
<Deleted>
<Key>unnecessary-bee</Key>
</Deleted>
</DeleteResult>
Was this article helpful?