Deleting a Node
var result = await client.DeleteAsync(new DeleteRequest("/node/path") {DeleteChildrenIfNeeded = false, Version = 73});
if (result.Status == ZooKeeperStatus.NodeHasChildren)
Console.WriteLine("Not a leaf.");
else if (result.Status == ZooKeeperStatus.VersionsMismatch)
Console.WriteLine("Node had an unexpected version and therefore was not deleted.");Atomicity of Children Deletion
Last updated