Skip to main content
POST
/
delete-knowledge-source
curl -X POST https://api.magpipe.ai/functions/v1/delete-knowledge-source \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source_id": "f7a8b9c0-d1e2-3f4a-5b6c-789012def345"}'
{
  "success": true,
  "chunks_deleted": 24
}
Delete a knowledge source and all its associated embeddings from the vector database.
This action is irreversible. All chunks and embeddings from this source will be permanently deleted.

Request Body

source_id
string
required
The unique identifier of the knowledge source to delete.

Response

success
boolean
Whether the source was deleted successfully.
chunks_deleted
integer
Number of chunks removed from the vector database.
curl -X POST https://api.magpipe.ai/functions/v1/delete-knowledge-source \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source_id": "f7a8b9c0-d1e2-3f4a-5b6c-789012def345"}'
{
  "success": true,
  "chunks_deleted": 24
}