文档中心 > DeleteBucket
DeleteBucket

最近更新时间:2021-12-23

使用DeleteBucket接口删除在url中指定的Bucket。

如果该Bucket非空,则不允许删除。


请求

请求语法

DELETE / HTTP/1.1

Host: examplebucket.region.unicloudsrv.com

Date: GMT date

Authorization: authorization string


示例

请求示例

DELETE / HTTP/1.1

Host: test.oss-cn-north-1.unicloudsrv.com

Date: Wed, 01 Mar  2006 12:00:00 GMT

Authorization: authorization string

返回示例

HTTP/1.1 204 No Content

Date: Wed, 01 Mar  2006 12:00:00 GMT

Connection: close

Server: nginx