Last updated: 2020-06-23 17:47:35


    This API is used to delete a specified bucket. To make this request, you need to have the permission to write to the bucket.

    Before deleting a bucket, please make sure that all the data and incomplete multipart uploads in the bucket have been deleted; otherwise, the bucket cannot be deleted.


    Sample Request

    DELETE / HTTP/1.1
    Host: <BucketName-APPID>.cos.<Region>
    Date: GMT Date
    Authorization: Auth String

    Authorization: Auth String (see Request Signature for more information).

    Request Parameters

    This API does not use any request parameter.

    Request Headers

    This API only uses common request headers. For more information on common request headers, see Common Request Headers.

    Request Body

    This API does not have a request body.


    Response Headers

    This API only returns common response headers. For more information, see Common Response Headers.

    Response Body

    The response body of this API is empty.

    Error Codes

    This API uses standardized error responses and error codes. For more information, see Error Codes .



    DELETE / HTTP/1.1
    Date: Tue, 28 May 2019 03:19:13 GMT
    Authorization: q-sign-algorithm=sha1&q-ak=AKID8A0fBVtYFrNm02oY1g1JQQF0c3JO****&q-sign-time=1559013553;1559020753&q-key-time=1559013553;1559020753&q-header-list=date;host&q-url-param-list=&q-signature=478b1db6182db32c8ed459dfa723a9f500b2****
    Connection: close


    HTTP/1.1 204 No Content
    Content-Length: 0
    Connection: close
    Date: Tue, 28 May 2019 03:19:14 GMT
    Server: tencent-cos
    x-cos-request-id: NWNlY2E4YjFfNjljMDBiMDlfMmNiZTlfZGE0****