delete_job
Delete a job from GnuCash books. Prevents data loss by refusing when invoices or bills are linked; use force to re-parent linked invoices automatically.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| job_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |