* Delete multiple documents from a collection * * @param filter - The filter used to select the documents to remove * @param options - Optional settings for the command
(
filter: Filter<TSchema> = {},
options: DeleteOptions = {}
)
| 476 | * @param options - Optional settings for the command |
| 477 | */ |
| 478 | async deleteMany( |
| 479 | filter: Filter<TSchema> = {}, |
| 480 | options: DeleteOptions = {} |
| 481 | ): Promise<DeleteResult> { |
| 482 | return await executeOperation( |
| 483 | this.client, |
| 484 | new DeleteManyOperation(this.s.namespace, filter, resolveOptions(this, options)) |
| 485 | ); |
| 486 | } |
| 487 | |
| 488 | /** |
| 489 | * Rename the collection. |