Skip to content

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

Terminal window
curl -X DELETE "https://api.formatjet.com/v1/jobs/job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D" \
-H "Authorization: Bearer $FORMATJET_API_KEY"

Path parameters

FieldTypeDescription
id requiredstring

Responses

200 OK

The receipt

FieldTypeDescription
receiptobject (map)Which files were deleted and when, signed with Ed25519: check signature with the public key whose kid matches at GET /v1/receipts/keys
Example
{
"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.

StatusCodeWhen
401unauthorizedNo API key, or one that’s unknown or revoked.
403forbiddenThe key lacks the convert scope, or the plan has no API.
404not_foundNo such job of this key’s mode, or its files are gone.
429rate_limitedMore requests than the plan allows in 10 seconds: wait Retry-After seconds.