delete_document
Delete unposted invoices, bills, vouchers, or credit notes from GnuCash. Posted documents require unposting first.
Instructions
Delete an UNPOSTED customer invoice, vendor bill, employee voucher, or credit note.
Posted documents are on the books — unpost_document first (payments block unposting; the audit trail outranks tidiness).
Args: document_type: "invoice", "bill", "voucher", or "credit_note". id: Document ID (e.g., "000001"). party_type: Owner side, credit notes only — pass it when a credit note's ID collides with a document of the same ID on the other side (ID counters are per type).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| party_type | No | ||
| document_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |