# delete_documents

Source: https://dropshelf.ai/docs/reference/mcp/tools/data/delete_documents

Delete up to 1000 chosen documents of a collection by id, in one transaction.

Ids already gone are reported, not refused. Pass documents with the rev each was read with to refuse ones changed since. Owner, editor or admin.

**Changes data · Destructive · Idempotent**

Needs `platform.db.enabled` on the instance.

## Input [#input]

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `collection` | string | yes | the collection |
| `documents` | array of object, nullable | no | the documents to delete with the rev each was read with, to refuse ones changed since |
| `documents[].id` | string | yes |  |
| `documents[].rev` | integer | no |  |
| `force` | boolean | no | delete documents even if their rev changed |
| `ids` | array of string, nullable | no | the ids to delete; or pass documents instead |
| `slug` | string | yes | the drop's name, the first label of its address |

Generated from dropshelf core at `6a548b2`, 26 Nov 2026.
