Skip to main content

Hard Delete Job

Permanently remove a job's media file, result data, or both. Unlike the soft delete, this is irreversible.

DELETE /v1/jobs/{job_id}/hard

Authentication​

  • Authentication is required. Include a valid df_ API key in the Authorization header, or rely on the machine-local default credential. See Authentication.

Path Parameters​

ParameterTypeDescription
job_idnumber(int)The edge job id to hard-delete.

Request Body​

ParameterTypeDescriptionRequired
delete_typestringWhat to remove: "file", "data", or "full".Yes
delete_typeEffect
fileDeletes the source media file and the job's upload directory. Result rows and the job record are kept.
dataDeletes all stored per-model result rows. The media file and job record are kept.
fullDeletes the media file, all result rows, and the job record itself.
{
"delete_type": "full"
}

Response​

{
"status": true,
"code": 200,
"message": "Job hard delete completed",
"data": {
"job_id": 42,
"delete_type": "full"
}
}

Errors​

CodeCondition
404No job exists with the given id.
422delete_type is not one of file, data, or full.

Example Request​

curl -X DELETE http://<edge-host>:9123/v1/jobs/42/hard \
-H "Authorization: Bearer df_..." \
-H "Content-Type: application/json" \
-d '{"delete_type": "full"}'