DeleteMultipleObjects
    • PDF

    DeleteMultipleObjects

    • PDF

    Article summary

    Available in Classic and VPC

    Delete a set of objects. No request body is used for the operation.

    Requests

    The following describes the request format for the endpoint. The request format is as follows.

    MethodURI
    POST/{bucket-name}

    Request syntax

    The request syntax is as follows.

    POST https://{endpoint}/{bucket-name}/?delete= # path style
    POST https://{bucket-name}.{endpoint}/?delete= # virtual host style
    

    Request headers

    The following describes the request headers.

    For headers common to all Object Storage APIs, see Object Storage common request headers.

    Caution

    The Content-MD5 header must be added.

    Request path parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    bucket-nameStringRequiredName of the bucket to delete the object set from

    Request query parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    deleteStringRequiredDeclare the set of objects to delete
    • Enter only keys without values

    Request example

    The following is a sample request.

    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>
        
        
    </Delete>
    

    Responses

    The following describes the response format.

    Response headers

    For response headers common to all Object Storage APIs, see Object Storage common response headers.

    Response status codes

    For response status codes common to all Object Storage APIs, see Object Storage response status codes.

    Response example

    The following is a sample response.

    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?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.