samuel / go-zookeeper

Native ZooKeeper client for Go. This project is no longer maintained. Please use https://github.com/go-zookeeper/zk instead.
BSD 3-Clause "New" or "Revised" License
1.64k stars 672 forks source link

DeleteRecursive(path string) #241

Open ssuvasanth opened 4 years ago

ssuvasanth commented 4 years ago

Deleting a Zknode along with all of its children znodes would be really a helpful function to have out-of-the-box.

Usecase: Backup and restore client application data to respective znodes. 'DeleteRecursive(path string)' would help to delete an entire tree and restore it from a backup or from another ZK cluster (Eg: a DR cluster for the application).