parameters: (self, **kwargs)
docstring: Delete the matching documents in current collection.
  
          Parameters:
             Name        Type  Info:
             **kwargs          Useful options are below
             - condition dict  The matching rule, delete all the documents
                                     if not provided.
             - hint      dict  The hint, automatically match the optimal hint
                                     if not provided
          Exceptions:
             pysequoiadb.error.SDBBaseError
docstring_summary: Delete the matching documents in current collection.
docstring_tokens: Delete the matching documents in current collection .
function: def delete(self, **kwargs):
          """Delete the matching documents in current collection.
  
          Parameters:
             Name        Type  Info:
             **kwargs          Useful options are below
             - condition dict  The matching rule, delete all the documents
                                     if not provided.
             - hint      dict  The hint, automatically match the optimal hint
                                     if not provided
          Exceptions:
             pysequoiadb.error.SDBBaseError
          """
          bson_condition = None
          bson_hint = None
  
          if "condition" in kwargs:
              if not isinstance(kwargs.get("condition"), dict):
                  raise SDBTypeError("condition must be an instance of dict")
              bson_condition = bson.BSON.encode(kwargs.get("condition"))
          if "hint" in kwargs:
              if not isinstance(kwargs.get("hint"), dict):
                  raise SDBTypeError("hint must be an instance of dict")
              bson_hint = bson.BSON.encode(kwargs.get("hint"))
  
          rc = sdb.cl_delete(self._cl, bson_condition, bson_hint)
          raise_if_error(rc, "Failed to delete")
function_tokens: def delete ( self , * * kwargs ) : bson_condition = None bson_hint = None if "condition" in kwargs : if not isinstance ( kwargs . get ( "condition" ) , dict ) : raise SDBTypeError ( "condition must be an instance of dict" ) bson_condition = bson . BSON . encode ( kwargs . get ( "condition" ) ) if "hint" in kwargs : if not isinstance ( kwargs . get ( "hint" ) , dict ) : raise SDBTypeError ( "hint must be an instance of dict" ) bson_hint = bson . BSON . encode ( kwargs . get ( "hint" ) ) rc = sdb . cl_delete ( self . _cl , bson_condition , bson_hint ) raise_if_error ( rc , "Failed to delete" )