etcd3ref/client.py
def delete(self, key, prev_kv=False, return_response=False):
        """
        Delete a single key in etcd.

        :param key: key in etcd to delete
        :param prev_kv: return the deleted key-value pair
        :type prev_kv: bool
        :param return_response: return the full response
        :type return_response: bool
        :returns: True if the key has been deleted when
                  ``return_response`` is False and a response containing
                  a header, the number of deleted keys and prev_kvs when
                  ``return_response`` is True
        """
        try:
            delete_response = self.__delete(key, prev_kv)
        except _InactiveRpcError as e:
            print("Exception {} happened, try to reconnect \n".format(e))
            self.reconnect()
            delete_response = self.__delete(key, prev_kv)

        if return_response:
            return delete_response
        return delete_response.deleted >= 1

        Delete a single key in etcd.

        :param key: key in etcd to delete
        :param prev_kv: return the deleted key-value pair
        :type prev_kv: bool
        :param return_response: return the full response
        :type return_response: bool
        :returns: True if the key has been deleted when
                  ``return_response`` is False and a response containing
                  a header, the number of deleted keys and prev_kvs when
                  ``return_response`` is True
        
Delete a single key in etcd.
Delete a single key in etcd .
def delete(self, key, prev_kv=False, return_response=False):
        try:
            delete_response = self.__delete(key, prev_kv)
        except _InactiveRpcError as e:
            print("Exception {} happened, try to reconnect \n".format(e))
            self.reconnect()
            delete_response = self.__delete(key, prev_kv)
        if return_response:
            return delete_response
        return delete_response.deleted >= 1
def delete ( self , key , prev_kv = False , return_response = False ) : try : delete_response = self . __delete ( key , prev_kv ) except _InactiveRpcError as e : print ( "Exception {} happened, try to reconnect \n" . format ( e ) ) self . reconnect ( ) delete_response = self . __delete ( key , prev_kv ) if return_response : return delete_response return delete_response . deleted >= 1
Delete a single key in etcd.
Delete a single key in etcd .
"""
        Delete a single key in etcd.

        :param key: key in etcd to delete
        :param prev_kv: return the deleted key-value pair
        :type prev_kv: bool
        :param return_response: return the full response
        :type return_response: bool
        :returns: True if the key has been deleted when
                  ``return_response`` is False and a response containing
                  a header, the number of deleted keys and prev_kvs when
                  ``return_response`` is True
        """
True if the key has been deleted when
``return_response`` is False and a response containing
a header, the number of deleted keys and prev_kvs when
``return_response`` is True
True if the key has been deleted when ` ` return_response ` ` is False and a response containing a header the number of deleted keys and prev_kvs when ` ` return_response ` ` is True
self
key
key in etcd to delete
key in etcd to delete
prev_kv
return the deleted key-value pair
return the deleted key - value pair
return_response
return the full response
return the full response