delete_document
Delete documents and related catalog entries safely by requiring the project name. Supports soft delete to trash or permanent removal, including Google Drive files if requested.
Instructions
Delete a document and its catalog entries. Requires project name to prevent accidental deletion.
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": {
"doc_id": "<doc_id>",
"project": "<project>"
},
"name": "delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | Document ID to delete | |
| project | Yes | Project name (required for safety) | |
| soft_delete | No | If true, move to trash. If false, permanently delete. | |
| delete_drive_file | No | If true, also delete the Google Drive file |