We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cdb519 commit 507cc36Copy full SHA for 507cc36
apps/sim/app/api/knowledge/[id]/route.ts
@@ -203,6 +203,11 @@ export async function DELETE(
203
}
204
205
await deleteKnowledgeBase(id, requestId)
206
+ // Note: per-KB embedding tables (kb_embeddings_{id}) are intentionally NOT dropped here.
207
+ // deleteKnowledgeBase performs a soft delete — the KB can be restored via the restore endpoint,
208
+ // which requires the per-KB table to still exist. This is consistent with how OpenAI embeddings
209
+ // remain in the shared table after a KB soft delete. Per-KB table cleanup should occur
210
+ // as part of a permanent purge/hard-delete operation.
211
212
try {
213
PlatformEvents.knowledgeBaseDeleted({
0 commit comments