Delete a document¶
DELETE /document-intelligence/v1/collections/{collection_id}/documents/{document_id}
Remove one document from a collection. Answers 202 with a job_id: the removal happens in the background, so the collection's document count is stale until it finishes.
Parameters¶
| Name | In | Required | Notes |
|---|---|---|---|
collection_id |
path | yes | - |
document_id |
path | yes | - |
Example¶
curl -X DELETE "https://api.futuresmart.ai/document-intelligence/v1/collections/{collection_id}/documents/{document_id}" \
-H "Authorization: Bearer $FS_API_KEY"
Responses¶
202
Every failure, a malformed request included, comes back in the shared envelope with a stable code to branch on. See Errors.