class_docstr: Calls to :meth:`orion.core.io.database.AbstractDB.remove`.
docstr: Should match existing entries, and delete them all.
docstr_tok: ["Should","match","existing","entries",",","and","delete","them","all","."]
code: def test_remove_many_default(self, orion_db, test_collection):
      """Should match existing entries, and delete them all."""
      filt = {"field1": "same1"}
      count_before = orion_db.count("test_collection")
      count_filt = orion_db.count("test_collection", filt)
      # call interface
      assert orion_db.remove("test_collection", filt) == count_filt
      database = get_db(orion_db)
      assert (
          orion_db.count("test_collection") == count_before - count_filt
      )
      assert orion_db.count("test_collection") == 1
      loaded_config = list(database["test_collection"].find())
      assert loaded_config == test_collection[1:2]
  
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 1 for calling the TestRemove obj's underlying member method code with example usage: obj.test_remove_many_default(orion_db, test_collection) without return types