DeleteMultipleObjects
    • PDF

    DeleteMultipleObjects

    • PDF

    Article Summary

    Classic/VPC 환경에서 이용 가능합니다.

    오브젝트 집합을 삭제합니다. 오퍼레이션에 사용되는 요청 바디는 없습니다.

    요청

    요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.

    메서드URI
    POST/{bucket-name}

    요청 구문

    요청 구문은 다음과 같습니다.

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

    요청 헤더

    요청 헤더에 대한 설명은 다음과 같습니다.

    Object Storage API에서 공통으로 사용하는 헤더에 대한 자세한 내용은 Object Storage 공통 요청 헤더를 참조해 주십시오.

    주의

    Content-MD5 헤더가 반드시 추가되어야 합니다.

    요청 경로 파라미터

    파라미터에 대한 설명은 다음과 같습니다.

    필드타입필수 여부설명
    bucket-nameStringRequired오브젝트 집합을 삭제할 버킷 이름

    요청 쿼리 파라미터

    파라미터에 대한 설명은 다음과 같습니다.

    필드타입필수 여부설명
    deleteStringRequired삭제할 오브젝트 집합 선언
    • 값 없이 키만 입력

    요청 예시

    요청 예시는 다음과 같습니다.

    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>
    

    응답

    응답 형식을 설명합니다.

    응답 헤더

    Object Storage API에서 공통으로 사용하는 응답 헤더에 대한 자세한 내용은 Object Storage 공통 응답 헤더를 참조해 주십시오.

    응답 상태 코드

    Object Storage API에서 공통으로 사용하는 응답 상태 코드에 대한 자세한 내용은 Object Storage 응답 상태 코드를 참조해 주십시오.

    응답 예시

    응답 예시는 다음과 같습니다.

    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>
    

    이 문서가 도움이 되었습니까?

    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.