class_docstr: Wrap MongoDB with three primary methods `read`, `write`, `remove`.
  
  Attributes
  ----------
  host : str
     Hostname or MongoDB compliant full credentials+address+database
     specification.
  
  Information on MongoDB `connection string
  <https://docs.mongodb.com/manual/reference/connection-string/>`_.
  
  .. seealso:: :class:`orion.core.io.database.Database` for more on attributes.
docstr: Delete from a collection document[s] which match the `query`.
  
  .. seealso:: :meth:`orion.core.io.database.Database.remove` for argument documentation.
docstr_tok: ["Delete","from","a","collection","document","[","s","]","which","match","the","`","query","`",".","..","seealso",":",":",":","meth",":","`","orion.core.io.database.Database.remove","`","for","argument","documentation","."]
code: def remove(self, collection_name, query):
      """Delete from a collection document[s] which match the `query`.
  
      .. seealso:: :meth:`orion.core.io.database.Database.remove` for argument documentation.
  
      """
      dbcollection = self._db[collection_name]
  
      result = dbcollection.delete_many(filter=query)
      return result.deleted_count
  
imports: import functools
  import pymongo
  from orion.core.io.database import Database, DatabaseError, DatabaseTimeout, DuplicateKeyError
label_desc: Use image node_id 17 for calling the MongoDB obj's underlying member method code with example usage: obj.remove(collection_name, query) and returns: result