SDK ReferenceDocument RAG
Delete Document
Remove a specific document from an index.
Description
The /index/delete-document endpoint allows you to remove a specific document from an existing index. This is useful for maintaining the accuracy and relevance of your indexed data.
HTTP Request
POST /index/delete-document
Authentication
All requests must include an Authorization header with a valid API key.
Headers
| Key | Value |
|---|---|
| Authorization | Bearer YOUR_API_KEY |
| Content-Type | application/json |
Request Body
- index: The ID of the index from which the document will be deleted.
- document: The ID of the document to delete.
JSON
| Field | Type | Description |
|---|---|---|
| index | string | The ID of the index |
| document | string | The ID of the document to delete |
Request Example
Response
Success
Status Code: 200 OK
Body: