DELETE Bucket

最近更新时间:2020-04-03 02:30:54

DELETE Bucket


Description

This DELETE operation will delete the bucket given in the URI. You must ensure that all objects in the bucket are deleted before deleting it.

Request

Grammar

DELETE / HTTP/1.1
Host: {BucketName}.{endpoint}
Date: {date}
Authorization: {SignatureValue}

Note:

Request parameters

The interface does not use request parameters.

Request header

This interface only uses common request headers. For more information, please click Public request headers.

Request content

The interface does not use the requested content.

Response

Response header

This interface can use all common response headers. For more information, please click Public response headers.

Response content

The interface does not return the corresponding content.

Special errors

The interface does not return any special errors.

Example

Request example

DELETE / HTTP/1.1
Host: ks3-example.ks3-cn-beijing.ksyun.com
Date: Wed, 01 Mar 2006 12:00:00 GMT
Authorization: authorization string

Response example

HTTP/1.1 204 No Content
Date: Wed, 01 Mar 2006 12:00:00 GMT
Connection: close
Server: Tengine

Interface details

  • If the Bucket is not empty, KS3 will return 409, and the corresponding error code is BucketNotEmpty

金山云,开启您的云计算之旅

注册有礼