def delete(self, key, recursive=False):
        try:
            if self.client.delete(key, recursive=recursive):
                return True
            else:
                return False
        except (etcd.EtcdNotFile, etcd.EtcdRootReadOnly, etcd.EtcdDirNotEmpty, etcd.EtcdKeyNotFound, __HOLE__) as err:
            log.error('etcd: {0}'.format(err))
            return None
        except MaxRetryError as err:
            log.error('etcd: Could not connect to etcd server: {0}'.format(err))
            return None
        except Exception as err:
            log.error('etcd: uncaught exception {0}'.format(err))
            raise
dataset/ETHPy150Open saltstack/salt/salt/utils/etcd_util.py/EtcdClient.delete