cURL
curl --request DELETE \ --url https://api.xpander.ai/v1/knowledge/{kb_id}/documents/{document_id} \ --header 'x-api-key: <api-key>'
{ "message": "Document deleted successfully" }
Delete a specific document from a knowledge base
202 Accepted
curl -X DELETE -H "x-api-key: <your-api-key>" \ https://api.xpander.ai/v1/knowledge/<kb-id>/documents/<document-id>
HTTP/1.1 202 Accepted Content-Type: application/json null
API Key for authentication
Successful Response
Was this page helpful?
Suggestions