delete_collection
Permanently drops a Directus collection and all its items; requires confirm: true to proceed and reports intended deletion when confirmation is missing.
Instructions
Drops a collection and every item in it, permanently. Requires confirm: true; without it nothing is deleted and the call reports what it would have done. Irreversible and not transactional: related items elsewhere may be left orphaned and a RESTRICT foreign key can make the drop fail halfway. Use delete_items to remove rows and keep the collection, delete_field to remove a single field. Take get_schema_snapshot first when the data model may need restoring.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collection": "<collection>"
},
"name": "delete_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Confirm deletion | |
| collection | Yes | Collection name |