MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / deleteDataSource

Function deleteDataSource

src/stores/apiServer.ts:379–390  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

377 }
378
379 async function deleteDataSource(id: string) {
380 try {
381 const ok = await transport.deleteDataSource(id)
382 if (ok) {
383 dataSources.value = dataSources.value.filter((s) => s.id !== id)
384 }
385 return ok
386 } catch (err) {
387 console.error('[ApiServerStore] Failed to delete data source:', err)
388 return false
389 }
390 }
391
392 // ==================== 导入会话管理 ====================
393

Callers

nothing calls this directly

Calls 2

deleteDataSourceMethod · 0.80
errorMethod · 0.65

Tested by

no test coverage detected