DeleteBucket
    • PDF

    DeleteBucket

    • PDF

    Article Summary

    개요

    빈 버킷으로 DELETE 요청을 보내면 빈 버킷을 삭제합니다. 사용자가 버킷을 삭제한 후 10분 후에 해당 버킷의 이름이 시스템에서 삭제됩니다.
    빈 버킷만 삭제할 수 있습니다. 오퍼레이션에 사용되는 파라미터, 페이로드는 없습니다.

    구문

    DELETE https://{endpoint}/{bucket-name} # path style
    DELETE https://{bucket-name}.{endpoint} # virtual host style
    

    예시

    요청 예시

    DELETE /images HTTP/1.1
    Host: kr.object.fin-ncloudstorage.com
    x-amz-date: 20160822T064812Z
    Authorization: {authorization-string}
    

    응답 예시

    HTTP/1.1 204 No Content
    Date: Thu, 25 Aug 2016 17:44:57 GMT
    x-amz-request-id: 8ff4dc32-a6f0-447f-86cf-427b564d5855
    Accept-Ranges: bytes
    

    요청 예시

    삭제하려는 버킷이 빈 버킷이 아닐 경우 서버에서 409 Conflict로 응답합니다.

    DELETE /apiary HTTP/1.1
    Host: kr.object.fin-ncloudstorage.com
    x-amz-date: 20160825T174049Z
    Authorization: {authorization-string}
    

    응답 예시

    HTTP/1.1 409 Conflict
    Date: Thu, 25 Aug 2016 17:44:57 GMT
    x-amz-request-id: 9d2bbc00-2827-4210-b40a-8107863f4386
    Content-Type: application/xml
    Content-Length: 285
    
    <Error>
      <Code>BucketNotEmpty</Code>
      <Message>The bucket you tried to delete is not empty.</Message>
      <Resource>/apiary/</Resource>
      <RequestId>9d2bbc00-2827-4210-b40a-8107863f4386</RequestId>
      <httpStatusCode>409</httpStatusCode>
    </Error>
    

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

    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.