Skip to main content
POST /v1/uploads stores a workspace-free document. Ordinary uploads stay until explicit deletion of the consuming job or tenant. Under Zero retention the upload goes to isolated temporary staging and is deleted automatically, used or unused. Sending the removed ttl_seconds parameter also returns 422 invalid_request. See Upload a document and Sources. For a durable corpus use workspace files.

Delete an unused upload

DELETE /v1/uploads/{upload_id} erases an unused upload and returns 204. Only its owner can delete it. A missing upload returns 404; one already consumed by a job returns 409 storage_conflict. Delete its consuming jobs instead. If storage deletion fails, the call returns an error but the erasure is recorded: new jobs can no longer use the upload and NDI retries the deletion, so retrying the DELETE is safe. Python: client.documents.delete_upload(upload_id) (also async). TypeScript: await client.documents.deleteUpload(upload_id). CLI: ndi upload-delete UPLOAD_ID. MCP: delete_uploaded_document(upload_id).