Deleting a Destination Cluster Reference

Deleting a Destination Cluster Reference

To delete an XDCR reference to a destination cluster, use the DELETE /pools/default/remoteClusters/[destination-cluster-name] HTTP method and URI.

Description

Once an XDCR reference to a destination cluster is deleted, it is no longer available for replication using XDCR.

HTTP method and URI

DELETE /pools/default/remoteClusters/[destination-cluster-name]

Syntax

Curl request syntax:

curl -v -X DELETE -u [admin]:[password] 
  http://[localhost]:8091/pools/default/remoteClusters/[destination-cluster-name]

Example

Curl request example:

curl -v -X DELETE -u Administrator:password1 \ 
  http://10.4.2.4:8091/pools/default/remoteClusters/remote1

Raw HTTP request example:

DELETE /pools/default/remoteClusters/remote1 HTTP/1.1
Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZDE=
User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
Host: 10.4.2.4:8091
Accept: */*   

Response

If successful, Couchbase Server responds with a 200 OK response.

HTTP/1.1 200 OK
Server: Couchbase Server 2.0.0-1941-rel-community
Pragma: no-cache

....

"ok"