DeleteBucket
- Print
- PDF
DeleteBucket
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Overview
Deletes an empty bucket by making a DELETE request to the bucket. The name of the bucket is deleted from the system 10 minutes after a user deletes the bucket.
Only empty buckets can be deleted. No parameters or payload is used for the operation.
Request
Syntax
DELETE https://{endpoint}/{bucket-name} # path style
DELETE https://{bucket-name}.{endpoint} # virtual host style
Examples
Request example
DELETE /images HTTP/1.1
Host: kr.object.ncloudstorage.com
x-amz-date: 20160822T064812Z
Authorization: {authorization-string}
Response example
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
Request example
If the bucket to delete is not empty, the server will respond with “409 Conflict.”
DELETE /apiary HTTP/1.1
Host: kr.object.ncloudstorage.com
x-amz-date: 20160825T174049Z
Authorization: {authorization-string}
Response example
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>
Was this article helpful?