Delete client
delete_clientDelete one customer or many to the bin (soft-delete, restorable). Send id for one customer, which returns {error}. Or send ids (up to 1000) to delete many in one transaction, which returns {error, deleted: [id ...], errors: [{id, message} ...]}. That is partial success: ids this business does not own, already deleted, or still linked to quotes/invoices are skipped and listed in errors, and error is true only when nothing was deleted. By default a customer with linked (non-deleted) quotes/invoices is refused so those documents aren't orphaned. Pass force:true to override, or archive via update_client.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delete_client"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | One client id to delete. | |
| ids | No | Up to 1000 client ids to delete in one transaction. Partial success: ids this business does not own, already deleted, or still linked (unless force) are skipped and listed in errors. | |
| force | No | Delete even when the client still has linked (non-deleted) quotes/invoices. Default false: the delete is refused when links exist, so linked documents aren't orphaned (PROD-555). |