Delete Document Job Endpoint
DELETE
/v1/documents/{job_id}
const url = 'http://localhost:8080/v1/documents/example';const options = {method: 'DELETE'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:8080/v1/documents/exampleSoft-delete a terminal-status job. Idempotent.
Refuses queued / processing (cancel first). Closes any
open review_queue row with status='closed_by_delete' so
reviewers can’t act on a deleted job. The artifact remains in
storage; a separate purge cron hard-deletes after the configured
grace window (see plan §B8).
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” job_id
required
Job Id
string
Responses
Section titled “ Responses ”Successful Response
Media type application/json
Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}