API · Documents
Delete a document
/api/v1/documents/{id}
Purges the payload and removes the document. Usage records are kept. While a question about the document is still being answered the delete is refused with 409 conflict; try again a moment later.
Path parameters
-
idstring requiredThe document's id.
Returns 204
Deleted
Errors
-
401Missing, revoked or expired key
-
402Payment required. Either the plan's monthly request quota is spent (
quota_exceeded, trial plans only — pay as you go is never capped) or the workspace is out of credit (insufficient_credits). -
404No document or query with that id for this key (documents are scoped to the key's workspace and live/test mode)
-
409A query on this document is still running
-
429Per-second burst limit for the plan exceeded; retry after
Retry-Afterseconds
Every error has the same shape. See Errors.