Skip to main content
DELETE
https://app.famulor.de
/
api
/
user
/
knowledgebases
/
{knowledgebaseId}
/
documents
/
{documentId}
Delete Document
curl --request DELETE \
  --url https://app.famulor.de/api/user/knowledgebases/{knowledgebaseId}/documents/{documentId} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Document deleted successfully."
}
This endpoint permanently deletes a document from a knowledge base. The document’s vector embeddings are also removed from the vector database.

Path Parameters

knowledgebaseId
integer
required
The unique identifier of the knowledge base
documentId
integer
required
The unique identifier of the document to delete

Response Fields

message
string
Success message

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 storage
  • Parent knowledge base status is automatically updated
This action is irreversible. The document and all its processed content will be permanently deleted.
If this was the last document in the knowledge base, the knowledge base status will change to empty.
{
  "message": "Document deleted successfully."
}