Delete
Methods for deleting documents.
Delete
¶
Methods for deleting documents.
Source code in src/scruby/mixins/delete.py
delete_many(filter_fn)
async
¶
Asynchronous method for delete one or more documents matching the filter.
Attention
- The search is based on the effect of a quantum loop.
- The search effectiveness depends on the number of processor threads.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filter_fn
|
Callable
|
A function that execute the conditions of filtering. |
required |
Returns:
| Type | Description |
|---|---|
int
|
The number of deleted documents. |