delete_voucher
Permanently deletes a TallyPrime voucher, removing it entirely instead of marking it cancelled. Matches by type, date, and number; no undo, so verify first.
Instructions
Permanently delete an existing voucher from TallyPrime — removes it entirely with no trace (distinct from cancelling, which keeps it visible but marked Cancelled). The voucher is matched by type + date + voucher number, so that combination must be unique and must exactly match an existing voucher (use get_ledger_vouchers or get_vouchers first to confirm it). This has no undo. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's lookup ignores voucher type and can silently target the wrong one) — resolve the collision in Tally first.
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": {
"voucherType": "<voucherType>",
"voucherNumber": "<voucherNumber>",
"date": "<date>"
},
"name": "delete_voucher"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Existing voucher's date in DD-MM-YYYY format | |
| voucherType | Yes | Voucher type, e.g. 'Payment', 'Receipt', 'Journal' | |
| voucherNumber | Yes | Exact voucher number of the voucher to delete |