Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt

Use this file to discover all available pages before exploring further.

Syntax

api.deleteKnowledgeSource(params)

Description

Deletes a Knowledge Source and the relative Knowledge Chunks. Parameters:
  • params: DeleteKnowledgeSourceParams — configuration object containing the source ID. The object contains the following parameters:
ParameterTypeDescription
knowledgeSourceIdstringThe ID of the Knowledge Source.
Returns: Promise<{}> — a promise that resolves to an empty object when the deletion is complete.

Example

await api.deleteKnowledgeSource({
  knowledgeSourceId: "ks_abc123def456"
});

console.log("Knowledge source deleted successfully");