Delete Source Document
delete_documentDeletes the source document attached to a purchase invoice, sale invoice, journal, or bank transaction to remove an attached file from a financial record.
Instructions
Delete the source document attached to a purchase invoice, sale invoice, journal, or bank transaction.
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": {
"entity_type": "<entity_type>",
"id": "<id>"
},
"name": "delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the record whose document to delete. | |
| entity_type | Yes | Which record the source document belongs to. |