Delete task
DELETE/api/tasks/:task_id
Delete a task.
Features
You can use this endpoint to:
- Immediately remove finished tasks (in
done,rejected, andfailedstates) whose results are no longer needed to free up output file storage. - Cancel and remove tasks that are in progress (
pending, andrunning) to free up processing capacity.
Automatic deletion of finished tasks
Finished tasks and their related output files (e.g., Denoiser tasks) are deleted automatically after a timeout. Manual deletion may be necessary if the output storage reaches its capacity and blocks creation of new tasks.
Note that input files are deleted immediately after processing.
Request
Responses
- 204
- 400
- 404
- 405
Response of successful task deletion doesn't have any content.
Request payload data was invalid and could not be parsed.
The requested task does not exist.
The provided task_id may be wrong or the task may have expired already.
Invalid HTTP method.