MCPcopy Create free account
hub / github.com/vercel/examples / deleteChatThread

Function deleteChatThread

python/vibe-coding-ide/frontend/src/lib/persistence.ts:311–318  ·  view source on GitHub ↗
(projectId: string, threadId: string)

Source from the content-addressed store, hash-verified

309
310// Remove a chat thread from a project and persist the change
311export function deleteChatThread(projectId: string, threadId: string): void {
312 const base =
313 loadChatState() ||
314 ({ threadsByProject: {}, version: 1 } as PersistedChatsState)
315 const list = base.threadsByProject[projectId] || []
316 base.threadsByProject[projectId] = list.filter((t) => t.id !== threadId)
317 saveChatState({ ...base })
318}

Callers 1

AppFunction · 0.90

Calls 2

loadChatStateFunction · 0.85
saveChatStateFunction · 0.85

Tested by

no test coverage detected