MCPcopy Create free account
hub / github.com/TanStack/ai / deleteThread

Function deleteThread

examples/ts-react-chat/src/routes/threads.tsx:203–206  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

201 }
202
203 const deleteThread = (id: string) => {
204 threadPersistence.removeItem(id)
205 commit(threadsRef.current.filter((t) => t.id !== id))
206 }
207
208 /** Bump recency, and set the title the first time a thread gets one. */
209 const touchThread = (id: string, title?: string) => {

Callers 1

handleDeleteFunction · 0.85

Calls 1

commitFunction · 0.85

Tested by

no test coverage detected