for (String name : args) {
if (instances.contains(args[0])) {
String path = Constants.ZROOT + Constants.ZINSTANCES + "/" + name;
byte[] data = zk.getData(path, null);
zk.recursiveDelete(path, NodeMissingPolicy.SKIP);
zk.recursiveDelete(Constants.ZROOT + "/" + new String(data), NodeMissingPolicy.SKIP);
} else if (uuids.contains(name)) {
// look for the real instance name
for (String instance : instances) {
String path = Constants.ZROOT + Constants.ZINSTANCES + "/" + instance;
byte[] data = zk.getData(path, null);