DBProvider.deleteQuery()method
deleteQuery(collection: Collection<string, II, TT>, query: Query<Item<II, TT>>): Promise<void>
Delete every item matching a query.
- Two-step by default: resolves the query to its matching items with
getQuery(), then deletes each one concurrently withdeleteItem(). Engine providers override this with a native query write where one exists (e.g. SQLDELETE … WHERE). - Not guaranteed atomic: the resolve and the writes are separate steps, so wrap the call in
transact()when atomicity matters.