Delete knowledge base entry by ID Beta

DELETE /v1/training/{trainingID}

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

Path parameters

  • trainingID number | null

    The unique identifier of the knowledge base entry you want to permanently remove

Responses

  • 200 application/json

    The knowledge base entry was deleted successfully.

    Hide response attribute Show response attribute object
    • success boolean Required

      Indicates whether the knowledge base entry and its associated vector embeddings were successfully deleted from the system

  • 404 application/json

    Knowledge base entry not found.

    Hide response attributes Show response attributes object
    • success boolean Required

      Indicates the status of the request

    • error string Required

      A text representation of the error

    • request_id string Required

      A unique identifier of the request, useful for reporting

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"
}