Delete supplier
delete_supplierDelete a supplier by id (soft-delete to bin). By default refuses when the supplier still has linked (non-deleted) bills/expenses — matching delete_suppliers_bulk — so linked expenses aren't orphaned. Pass force:true to override, or archive via save_supplier.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Supplier id of the supplier to delete. | |
| force | No | Delete even when the supplier still has linked (non-deleted) bills/expenses. Default false: the delete is refused when links exist, so linked expenses aren't orphaned (PROD-663). |