API Reference
Delete document
Delete a document from a knowledgebase
On this page
This endpoint permanently deletes a document from a knowledgebase. The document's vector embeddings are also removed from the vector database.
Path Parameters
knowledgebaseIdintegerrequired
The unique identifier of the knowledgebase
documentIdintegerrequired
The unique identifier of the document to delete
Response
messagestring
Success message
{
"message": "Document deleted successfully."
}
{
"error": "Knowledgebase not found."
}
{
"error": "Document not found."
}
{
"error": "Failed to delete document. Please try again."
}
What Gets Deleted
When you delete a document:
- Document record is removed from the database
- Vector embeddings are deleted from the vector database
- Processed content is removed from external document stores
- Parent knowledgebase status is updated automatically
This action is irreversible. The document and all its processed content will be permanently deleted.
If this was the last document in the knowledgebase, the knowledgebase status will change to empty.
Related guides
API Reference
Introduction
Welcome to the VoxLink API
Read guide →API Reference
Authentication
Learn how to authenticate your API requests
Read guide →API Reference
Get current user
Get the authenticated user's profile information
Read guide →API Reference
List assistants
List all assistants for the authenticated user with pagination
Read guide →