deleteInvoice
deleteInvoicePermanently delete a draft invoice. This action only works on invoices with status 'draft' and cannot be undone.
Instructions
Permanently delete a draft invoice. ONLY works on status='draft'. For approved invoices, use voidInvoice (with caveats) or createInvoiceCreditNote — do NOT call deleteInvoice on approved invoices. DESTRUCTIVE: record removed permanently. ONLY call when the user explicitly says 'delete' for THIS invoice; never call as automatic recovery from another failed operation. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceId | Yes | The unique identifier (UUID) of the draft or upcoming invoice to delete. | |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow |