DELETE Bucket

Last updated:2021-09-14 16:17:59

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.ksyuncs.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

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈