Delete document
delete_documentDelete a file at a tender or a grant — the record AND the object in storage. This is the counterpart to finalize_document_upload and to render_plan_document, which had no way back: a record could be removed by hand, but the file stayed, invisible to every listing. Pass document_id for a record, or storage_path for an object whose record is already gone (list_tender_documents shows those under unreferenced_files). Refuses a path outside this tenant. If the file was typeset from a plan source, the answer says so — the source survives and the next render_plan_folder recreates the file; use delete_draft_document to remove the source as well.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | No | A row in tender_documents or grant_documents. | |
| storage_path | No | For an object with no record. Exactly the value from unreferenced_files.delete_with. |