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/[email protected]"; 
-d {}
+    curl "http://xxx.xxx.xxx.xxx:5986/_nodes/[email protected]";
+    {"_id":"[email protected]","_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/[email protected]"?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:
[email protected]


With regards,
Apache Git Services

Reply via email to