delete_voucher
Permanently delete a voucher from TallyPrime by providing its type, date, and exact number. Ensures unique match to prevent accidental deletion, with no undo option.
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.
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 |