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. This endpoint handles the complete cleanup process, removing both the database record and any associated vector embeddings.
Headers
-
X-API-Version
string Default value is
2025-03-25
.
Path parameters
-
trainingID
number | null The unique identifier of the knowledge base entry you want to permanently remove
DELETE
/v1/training/{trainingID}
curl \
--request DELETE 'https://api.sensay.io/v1/training/12345' \
--header "X-ORGANIZATION-SECRET: $API_KEY" \
--header "X-API-Version: 2025-03-25"
Response examples (200)
{
"success": true
}
Response examples (404)
{
"success": true,
"error": "string",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}