You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/07/19 14:46:42 UTC

[GitHub] janl commented on a change in pull request #146: fix: node doc delete missing ?rev

janl commented on a change in pull request #146: fix: node doc delete missing ?rev
URL: https://github.com/apache/couchdb-documentation/pull/146#discussion_r128268386
 
 

 ##########
 File path: src/cluster/nodes.rst
 ##########
 @@ -74,8 +74,16 @@ Removing a node
 Before you remove a node, make sure that you have moved all
 :ref:`shards <cluster/sharding/move>` away from that node.
 
-To remove ``node2`` from server ``yyy.yyy.yyy.yyy``:
+To remove ``node2`` from server ``yyy.yyy.yyy.yyy``, you need to first know the
+revision of the document that signifies that node?s existence:
 
 .. code-block:: text
 
-    curl -X DELETE "http://xxx.xxx.xxx.xxx:5986/_nodes/node2@yyy.yyy.yyy.yyy" -d {}
+    curl "http://xxx.xxx.xxx.xxx:5986/_nodes/node2@yyy.yyy.yyy.yyy"
+    {"_id":"node2@yyy.yyy.yyy.yyy","_rev":"1-967a00dff5e02add41820138abb3284d"}
+
+With that ``_rev``, you can now proceed to delete the node document:
+
+.. code-block:: text
+
+    curl -X DELETE "http://xxx.xxx.xxx.xxx:5986/_nodes/node2@yyy.yyy.yyy.yyy"?rev=1-967a00dff5e02add41820138abb3284d
 
 Review comment:
   good call, fixed
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services