class_docstr: Calls to :meth:`orion.core.io.database.AbstractDB.remove`.
docstr: Query using ``_id`` key.
docstr_tok: ["Query","using","``","_id","``","key","."]
code: def test_remove_with_id(self, orion_db, test_collection):
      """Query using ``_id`` key."""
      filt = {"_id": test_collection[0]["_id"]}
  
      count_before = orion_db.count("test_collection")
  
      # call interface
      assert orion_db.remove("test_collection", filt) == 1
      database = get_db(orion_db)
      assert orion_db.count("test_collection") == count_before - 1
      loaded_configs = list(database["test_collection"].find())
      assert loaded_configs == test_collection[1:]
  
imports: import pickle
  from datetime import datetime
  import pytest
  from orion.core.io.database import Database, DatabaseError, DuplicateKeyError
  from orion.core.io.database.ephemeraldb import EphemeralDB
  from orion.core.io.database.mongodb import MongoDB
  from orion.core.io.database.pickleddb import PickledDB
  from .conftest import insert_test_collection
label_desc: Use image node_id 2 for calling the TestRemove obj's underlying member method code with example usage: obj.test_remove_with_id(orion_db, test_collection) without return types