delete_job
Remove a job from GnuCash while protecting data integrity. If invoices are linked, force re-parents them to the customer or vendor before deletion.
Instructions
Delete a job.
Refuses by default when invoices/bills are linked to the
job (data-loss prevention). force=True re-parents
every linked invoice back to its underlying customer or
vendor before deleting the job row, preserving invoice
history. Use update_job(active=False) instead if you
want to keep the job in place but mark the project done.
Args: job_id: Job ID. force: If True, re-parent linked invoices instead of refusing. Default False.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job_id": "<job_id>"
},
"name": "delete_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| job_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |