/**
  * Asynchronously delete the node at the given path, with the specified version, and execute the
  * given {@link groovy.lang.Closure} as a callback.
  *
  * @param path
  * @param version
  * @param callback
  */
 public void delete(Object path, int version, final Closure callback) {
   zookeeper.delete(
       getPathAsString(path),
       version,
       new AsyncCallback.VoidCallback() {
         public void processResult(int rc, String path, Object ctx) {
           callback.setProperty("returnCode", rc);
           callback.setProperty("path", path);
           callback.setDelegate(ctx);
           callback.call();
         }
       },
       this);
 }
 /**
  * Delete the node with the given version.
  *
  * @param path plain or Groovy string
  * @param version version to delete
  * @throws InterruptedException
  * @throws KeeperException
  */
 public void delete(Object path, int version) throws InterruptedException, KeeperException {
   zookeeper.delete(getPathAsString(path), version);
 }