'Delete a znode'

def delete(self, path, version=(-1)):

    if (type(path) is list):
        map((lambda el: self.delete(el, version)), path)
        return
    url = ('%s/znodes/v1%s?%s' % (self._base, path, urllib.urlencode({'version': version})))
    try:
        return self._do_delete(url)
    except urllib2.HTTPError as e:
        if (e.code == 412):
            raise ZooKeeper.WrongVersion(path)
        elif (e.code == 404):
            raise ZooKeeper.NotFound(path)
        raise
