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
The unique identifier of the knowledge source to delete.
Response
Whether the source was deleted successfully.
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
}