Deleting XDCR Replications
To delete an XDCR replication, use the
DELETE /controller/cancelXDCRHTTP method and URI.
When a replication is deleted, it stops replication from the source to the destination. If the replication is re-created the between the same source and destination clusters and buckets, XDCR resumes replication.
replication_id must take the form
[UUID]/[local-bucket-name]/[remote-bucket-name], and must be URL-encoded.
Note that it can be obtained, in encoded format, by means of the
GET method and
/pools/default/tasks endpoint, applied to the source cluster: in the output, the encoded id is provided as the value of the
See Getting Cluster Tasks.
A URL-encoded endpoint is used which contains the unique document ID that references the replication. The replication can also be deleted via the web console.
Curl request example:
curl -u Administrator:password1 \ http://10.4.2.4:8091/controller/cancelXDCR/ \ 9eee38236f3bf28406920213d93981a3%2Fbeer-sample%2Fremote_beer \ -X DELETE