PendiumDocs

delete_knowledge_source

Permanently remove a knowledge source and all of its indexed vectors from the agent's knowledge base.

Permanently remove a knowledge source and all of its indexed vectors from the agent's knowledge base. Destructive and irreversible — anyone with access to the agent, including shared team members, can delete one. Use list_knowledge_sources to find the source id.

You pass only the sourceId — the underlying vector ids are resolved server-side.

Authentication: Required.

Parameters

ParameterTypeRequiredDescription
syntheticIdintegerYesThe agent the knowledge source belongs to.
sourceIdintegerYesThe knowledge-source id to delete (the id from list_knowledge_sources).

Response

{
  "success": true,
  "syntheticId": 1234,
  "deletedSourceId": 88,
  "deletedVectorCount": 12
}

On this page