Skip to main content
POST
https://mtxbiyilvgwhbdptysex.supabase.co/functions/v1
/
delete-knowledge-source
curl -X POST https://mtxbiyilvgwhbdptysex.supabase.co/functions/v1/delete-knowledge-source \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -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://mtxbiyilvgwhbdptysex.supabase.co/functions/v1/delete-knowledge-source \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"source_id": "f7a8b9c0-d1e2-3f4a-5b6c-789012def345"}'
{
  "success": true,
  "chunks_deleted": 24
}