delete_party
Delete a customer, vendor, or employee only when they have no documents. For parties with history, deactivate instead to preserve the audit trail.
Instructions
Delete a customer, vendor, or employee.
Blocked while the party has documents (invoices, bills, vouchers, credit notes) — the audit trail outranks tidiness. Prefer update_party(active=false) to retire a party while keeping its history.
Args: party_type: "customer", "vendor", or "employee" (ID counters collide across types — always required). id: Party ID (e.g., "000001").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| party_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |