Get Deletion Job
Returns the progress of a deletion requested with Delete Document, Delete Document File, or Delete Source, or of one file in Delete Document Files in Batch. Poll it until run_state is completed or failed.
Only the API key that requested the deletion can read its job. The job stays readable after the deletion completes.
Get Document, Get Document File, or Get Source answers 404 for the deleted object from the moment the deletion is accepted. When a source is deleted with documents=keep, its documents are hidden while the job runs and come back when it completes, with source_id set to null. If the job fails, they stay hidden.
A failed deletion cannot be retried over this API.
For the deletion flow, see Delete Documents and Sources.
Authorization
Path parameters
…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.job.id from Delete Document, Delete Document File, or Delete Source, or the job.id of an accepted file in Delete Document Files in Batch or Get Deletion Batch. Their status_url points here.Responses
requested (newly accepted), then quiescing, deleting_objects, deleting_derived_data, deleting_primary_data, and completed.null until then, and on a failed job.null when there is none. It is also set while run_state is retry_wait, so read run_state, not error, to tell whether the job failed.cascade deletes them, keep keeps them. Ignore it on a deletion of a document file or a document.null when none is scheduled.Scheduler state:
dispatch_pending(newly accepted),queued,running: in progress.retry_wait: an automatic retry is scheduled atretry_at.completed: everything was removed.failed: cleanup stopped, and the target stays hidden. It can't be retried.
document, the document ID for logical_document, the source ID for source.document for a document file, logical_document for a whole document, source for a source.