Deleting a Node
To delete a node, call DeleteAsync
. By default, any children of a given node will be deleted too. Override this behaviour by setting DeleteRequest.DeleteChildrenIfNeeded
.
Specify DeleteRequest.Version
to only delete a node with expected version.
Atomicity of Children Deletion
Note that deletion of a node that has children with its children is not atomic. Nodes will be deleted recursively, starting with leaves, until it is possible to delete an original node. This means that an inconsistent state may be read before deletion is completed or an operation may be left halfway done in case of a connection-related issues.
Last updated