delete_documents
Delete matching MongoDB documents by filter—remove the first match or all matches when many=true. Requires confirm_all=true for empty filters to prevent accidental bulk deletion.
Instructions
Delete the first matching document (many=false) or all matching documents (many=true). An empty filter requires confirm_all=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| many | No | ||
| filter | Yes | ||
| database | No | ||
| collation | No | ||
| collection | Yes | ||
| connection | No | ||
| confirm_all | No |