curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Techy Teck <comptechge...@gmail.com>
Subject Delete all the child nodes within parent node?
Date Wed, 13 Nov 2013 07:35:47 GMT
Is there any way to delete all the child nodes of any parent node
recursively using curator?

        CuratorFramework client =
CuratorClient.createSimple("localhost:2181");
        client.start();

        client.delete().forPath("/foo");


I have couple of children node inside /foo parent node. So is there any way
to delete all the child nodes recursively within any parent node using
Curator library?

This is what I get -

Exception in thread "main"
org.apache.zookeeper.KeeperException$NotEmptyException: KeeperErrorCode =
Directory not empty for /foo

Mime
View raw message