You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Dima Gutzeit <gu...@gmail.com> on 2011/10/25 21:29:29 UTC

Recursive node deletion

Dear list members,

At the moment if I need to delete some node that has child nodes which in it's turn have child nodes I have traverse the whole tree and to delete children before I can delete parent.  

What is the logic behind it and why can't I delete a node that has children ?

Regards,
Dima Gutzeit.

Sent from my iPhone

Re: Recursive node deletion

Posted by Mahadev Konar <ma...@hortonworks.com>.
Dima,
 You can use ZKUtil.java in 3.4 (being voted on) to do the recursive
delete for you.

thanks
mahadev

On Tue, Oct 25, 2011 at 12:29 PM, Dima Gutzeit <gu...@gmail.com> wrote:
> Dear list members,
>
> At the moment if I need to delete some node that has child nodes which in it's turn have child nodes I have traverse the whole tree and to delete children before I can delete parent.
>
> What is the logic behind it and why can't I delete a node that has children ?
>
> Regards,
> Dima Gutzeit.
>
> Sent from my iPhone