Overview
By default Unsiloed keeps a job’s uploaded document, its derived files and its results until you delete the job. An organization can instead choose to have the document, or the document and the results, deleted automatically 24 hours after each job finishes. Any job can also be deleted immediately with aDELETE call.
The setting covers parse, extraction, classification, splitting and form-fill jobs.
The setting never deletes the job record: its id, status, timing and page count stay, and so do usage and billing records. Only the content goes.
The 24-hour window is fixed. It is counted from when the job reaches a final status (
Succeeded, Failed or Cancelled) and cannot be shortened or extended. To remove content sooner, delete the job.Organization setting
The policy is set per organization and applies to every job the organization runs, whether it was started with an API key or by a signed-in user in the web app. Org admins change it in the web app under Account settings → Data retention, or with the API:data_retention_mode is keep, delete_files or delete_all. This endpoint takes an org admin’s session token, not an API key.
A new setting applies to jobs started after it is saved, within about a minute. Jobs that were already running or finished keep the policy they were created under, including when you later switch back to keep.
Per-request override
Every job-creating endpoint accepts adata_retention field with the value delete_files or delete_all. It applies to that job only and can only be stricter than the organization’s policy: keep < delete_files < delete_all, and the stricter of the two wins. A value looser than the policy has no effect. Any other value is rejected (400 on /parse, 422 on the extraction, classification, splitting and form-fill endpoints).
POST /v2/extract, POST /classify, POST /splitter and POST /auto-fill/process.
The web app’s playground offers the same choice per job: the Retention select next to Run starts on Organization policy and lists only the modes stricter than it.
Reading a job’s retention state
Parse responses fromPOST /parse and GET /parse/{job_id} carry a data_retention object when a mode applies. It is absent for jobs on keep.
delete_files or delete_all: the mode the job runs under (the stricter of the request and the organization’s policy at the time it was created).When the content is due for deletion: 24 hours after the job finished, or the job’s
expires_in deadline if that comes first. null while the job is still running.After the files are deleted
Underdelete_files, GET /parse/{job_id} keeps returning the results. pdf_url, file_url, export URLs and every segment image are null, and data_retention.files_deleted_at is set. Extraction, classification, splitting and form-fill jobs behave the same way: results are served and file URLs are null.
After everything is deleted
Underdelete_all, reading the job returns 410 Gone with the error code job_deleted. The record still exists, so the owner sees the 410; anyone else gets the same 404 as for a job that never existed. Public share links of the job also answer 410. A parse job you delete yourself with scope=all answers 410 the same way.
An extraction, classification, splitting or form-fill job you delete yourself with scope=all is different: the delete also removes the job from your history, so reading or deleting it afterwards returns 404, not 410.
details.data_deleted_at.
Delete a job
Delete a finished job’s content at any time, in either scope:?scope= applies to DELETE /jobs/{job_id} (extraction), DELETE /splitter/{job_id}, DELETE /classify/{job_id} and DELETE /auto-fill/{job_id}.
Without scope, the organization’s policy decides: delete_files means files; keep or delete_all means all.
Deletes only ever widen, and repeating one is safe:
A parse job’s record stays after every delete. On extraction, classification, splitting and form-fill,
scope=files keeps the record and scope=all removes it.
Files in your own storage are never touched: a document passed by
url or input_file_url, or a file in a connected bucket, stays where it is. Only the copies Unsiloed stored for the job are deleted.Deleting past data
Turning on a retention mode does not touch jobs that finished before the change. There is no bulk delete; delete past jobs one by one with the scope you want, then read each back to confirm the markers.scope=files the final GET returns 200 and data_retention.files_deleted_at is set. With scope=all it returns 410. The loop is for parse jobs: an extraction, classification, splitting or form-fill job deleted with scope=all reads back as 404.
expires_in
The per-request expires_in keeps its meaning: the number of seconds after the job finishes until the job, including its record, is removed. Under a retention mode the content is deleted at the sooner of the two deadlines and the record is still removed when expires_in passes.
What the setting does not cover
- Job records. Status, timing, page count and billing or usage records are kept for every job, in every mode.
- Logs and metrics. These hold no document content, but they keep job ids and sizes.
- Backups. Deleted content is not restored. Short-term backups kept for recovering from outages roll over within seven days.
- Third-party services. We use third-party services to process documents on our behalf. They act only on our instructions and may not use your data for training.
- Excel field extraction in the web app. Extracting fields from an Excel workbook in the extraction playground creates no job, history entry or stored result, so there is nothing for the policy to delete. Parsing an Excel file (
/parse/excelor the parser playground) is a normal job and follows the policy.
DELETE and the web app’s delete dialog (“Delete documents” / “Delete everything”) work on every job.
