The DELETE Bucket replication API is used to delete the cross-region replication configuration from a bucket. When initiating this request, you need to get the request signature to show that the request has been authorized.
DELETE /?replication HTTP/1.1
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com
Date: GMT Date
Authorization: Auth String
Authorization: Auth String (see Request Signature for details).
The implementation of this request uses a common request header. For more information on common request headers, see Common Request Headers.
This request does not use any special request header.
The request body of this request is empty.
This response contains a common response header. For more information on common response headers, see Common Response Headers.
This response does not have special response headers.
This response body is empty.
The following request sample deletes the cross-region replication configuration from the bucket originbucket-1250000000
.
DELETE /?replication HTTP/1.1
Date: Fri, 14 Apr 2019 07:47:35 GMT
Authorization: q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0a1ICvR98JM&q-sign-time=1503901499;1503901859&q-key-time=1503901499;1503901859&q-header-list=host&q-url-param-list=replication&q-signature=761f3f6449c6a11684464f4b09c6f292f0a4e7e0
Host: originbucket-1250000000.cos.ap-chengdu.myqcloud.com
After the request above is made, COS returns a response of 204 No Content
, indicating that the cross-region replication configuration has been successfully deleted from the bucket. After the configuration is deleted, COS will no longer replicate the 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: NWQwMzUxMTdfMjBiNDU4NjRfNWZlZF84MjdmZTE=
x-cos-trace-id: OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OWE4OGMxZjNjY2JiNTBmMTVmMWY1MzAzYzkyZGQ2ZWM4MzUyZTg1NGRhNWY0NTJiOGUyNTViYzgyNzgxZTEwOTY=
Was this page helpful?