Delete Job
DELETE/jobs/:id
Soft-deletes a job and stops all its executions.
What Happens
- Job state is set to "deleted"
- Evaluation is created to stop all active executions
- Job is excluded from default list views
- Job data is preserved for audit purposes (versions, history remain accessible)
When to Use
- Remove a job you no longer need
- Clean up after testing or development
- Decommission jobs for replaced services
- Archive old jobs while preserving audit trail
State Validation
By default, jobs can only be deleted if they are in a deletable state (stopped, completed, failed).
Use force: true to bypass state validation and delete jobs in any state (including running).
Async Behavior
The API returns immediately after marking the job as deleted. An evaluation is created to asynchronously stop all executions. Monitor the evaluation to track cleanup progress.
Common Scenarios
- Delete completed job:
DELETE /jobs/my-job(no force needed) - Force delete running job:
DELETE /jobs/my-jobwith{"force": true}in body - Delete with reason:
DELETE /jobs/my-jobwith{"reason": "Replaced by v2"}in body
Viewing Deleted Jobs
Deleted jobs are soft-deleted. To view: GET /jobs?states=deleted
Request
Responses
- 200
- 400
- 404
- 500
OK
Bad Request
Not Found
Internal Server Error