tencent cloud

Feedback

DELETE Bucket replication

Last updated: 2024-03-28 18:12:17

    Overview

    This API is used to delete the cross-bucket replication configuration from a bucket. When initiating this request, you need to get the request signature to show that the request has been authorized.
    

    Request

    Request example

    DELETE /?replication HTTP/1.1
    Host: <BucketName-APPID>.cos.<Region>.myqcloud.com
    Date: GMT Date
    Authorization: Auth String
    Note:
    In Host: <BucketName-APPID>.cos.<Region>.myqcloud.com, <BucketName-APPID> is the bucket name followed by the APPID, such as examplebucket-1250000000 (see Bucket Overview > Basic Information and Bucket Overview > Bucket Naming Conventions), and <Region> is a COS region (see Regions and Access Endpoints).
    Authorization: Auth String (See Request Signature for details.)

    Request headers

    This API only uses Common Request Headers.

    Request body

    The request body of this request is empty.

    Response

    Response headers

    This API only returns Common Response Headers.

    Response body

    The response body is empty.

    Error codes

    This API returns uniform error responses and error codes. For more information, see Error Codes.

    Examples

    Request

    The following example deletes the cross-bucket replication configuration from the originbucket-1250000000 bucket:
    DELETE /?replication HTTP/1.1
    Date: Fri, 14 Apr 2019 07:47:35 GMT
    Authorization: q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0a1ICvR****&q-sign-time=1503901499;1503901859&q-key-time=1503901499;1503901859&q-header-list=host&q-url-param-list=replication&q-signature=761f3f6449c6a11684464f4b09c6f292f0a4****
    Host: originbucket-1250000000.cos.ap-chengdu.myqcloud.com

    Response

    After the request above is made, COS returns "204 No Content", which indicates that the cross-bucket replication configuration has been successfully deleted from the bucket. After the configuration is deleted, COS will no longer replicate objects in the source bucket to the destination bucket, and the existing object data in the destination bucket will be retained.
    Content-Length: 0
    Connection: keep-alive
    Date: Fri, 14 Apr 2019 07:47:35 GMT
    Server: tencent-cos
    x-cos-request-id: NWQwMzUxMTdfMjBiNDU4NjRfNWZlZF84Mjdm****
    x-cos-trace-id: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OWE4OGMxZjNjY2JiNTBmMTVmMWY1MzAzYzkyZGQ2ZWM4MzUyZTg1NGRhNWY0NTJiOGUyNTViYzgyNzgxZTEw****