Table of contents
1. Example of node deletion
1.1. Node deletion
-
Create a test node on the client and view the node
[zk: localhost:2181(CONNECTED) 5] create /test "123456"
-
Delete the test node and view the node
[zk: localhost:2181(CONNECTED) 7] delete /test
1.2. Recursive node deletion
-
First, create a test node on the client
[zk: localhost:2181(CONNECTED) 15] create /test "123"
-
Then, create a t1 child node on the test node
[zk: localhost:2181(CONNECTED) 16] create /test/t1 "456"
-
Finally, recursively delete the test node and t1 child nodes
[zk: localhost:2181(CONNECTED) 18] deleteall /test
2. Example of viewing node status
-
Create a test1 node on the client
[zk: localhost:2181(CONNECTED) 20] create /test1 "123456"
-
View test1 node status
[zk: localhost:2181(CONNECTED) 21] stat /test1