Delete knowledge base entry by ID
Beta
Permanently removes a specific knowledge base entry and its associated vector database entry. Use this endpoint when you need to remove outdated or incorrect training data from your replica's knowledge base. This operation cannot be undone, and the entry will no longer be available for retrieval during conversations with your replica. In most cases, the deletion is completed immediately. However, in some scenarios, part of the deletion process may be delayed. This means that while the request has been accepted and the deletion process has started, some associated data may remain temporarily available and will be removed within 24 hours.
DELETE
/v1/replicas/{replicaUUID}/knowledge-base/{knowledgeBaseID}
curl \
--request DELETE 'https://api.sensay.io/v1/replicas/03db5651-cb61-4bdf-9ef0-89561f7c9c53/knowledge-base/12345' \
--header "X-ORGANIZATION-SECRET: $API_KEY" \
--header "X-API-Version: 2025-03-25"
Response examples (200)
{
"success": true
}
Response examples (202)
{
"success": true,
"message": "The deletion process has been initiated. Full removal of all associated data may take up to 24 hours to complete."
}
Response examples (404)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}