Delete a job
job_deleteDelete a job at the revision you read. The job is removed; its tasks and outputs stay, with no job, and the name can be used again. This cannot be undone, and repeating it does not succeed. Archive still pauses one (job_update with archived: true). A stale revision refuses CONFLICT with currentRevision and detaches nothing. A job you cannot read is UNAVAILABLE, the same not-found as job_get.
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": {
"id": "<id>",
"expectedRevision": "<expectedRevision>"
},
"name": "job_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The job, by its id (job_create returns it; workspace_load lists your jobs and the others by id). | |
| why | No | Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters. | |
| expectedRevision | Yes | The job's revision as you read it (job_get, job_create); a stale one is CONFLICT with currentRevision and detaches nothing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | Yes | How many tasks no longer belong to the job. | |
| deleted | Yes |