delete-many
Delete all documents matching a filter from a MongoDB collection. Removes multiple records in one operation.
Instructions
Removes all documents that match the filter from a MongoDB collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | The query filter, specifying the deletion criteria. Matches the syntax of the filter argument of db.collection.deleteMany() | |
| database | Yes | Database name | |
| collection | Yes | Collection name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | ||
| collection | Yes | ||
| deletedCount | Yes |