Delete a job’s files
DELETE /v1/jobs/{id}
Delete a job’s files now; returns a signed deletion receipt.
Deletes the job’s inputs and outputs from storage at once, instead of when its retention ends. A running job is canceled first.
API key with the convert scope.
Request
curl -X DELETE "https://api.formatjet.com/v1/jobs/job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D" \ -H "Authorization: Bearer $FORMATJET_API_KEY"Path parameters
| Field | Type | Description |
|---|---|---|
id required | string |
Responses
200 OK
The receipt
| Field | Type | Description |
|---|---|---|
receipt | object (map) | Which files were deleted and when, signed with Ed25519: check signature with the public key whose kid matches at GET /v1/receipts/keys |
{ "receipt": { "type": "formatjet.deletion_receipt", "version": 1, "job_id": "job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D", "files": [ { "id": "file_01JBXA3PZK4M6N8P0Q2R4S6T8V", "role": "input", "deleted_at": "2026-10-24T10:00:06.000Z" }, { "id": "file_01JBXA3R2N5P7Q9S1T3V5W7X9Z", "role": "output", "deleted_at": "2026-10-24T10:03:41.000Z" } ], "issued_at": "2026-10-24T10:03:41.000Z", "signature": { "alg": "Ed25519", "key_id": "rk_2026_10", "value": "k3M9…" } }}Errors
Problem documents (application/problem+json); see Errors.
| Status | Code | When |
|---|---|---|
| 401 | unauthorized | No API key, or one that’s unknown or revoked. |
| 403 | forbidden | The key lacks the convert scope, or the plan has no API. |
| 404 | not_found | No such job of this key’s mode, or its files are gone. |
| 429 | rate_limited | More requests than the plan allows in 10 seconds: wait Retry-After seconds. |