MCPcopy Create free account
hub / github.com/codeaashu/claude-code / clearSession

Function clearSession

src/services/api/sessionIngress.ts:502–505  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

500 * Clear cached state for a session
501 */
502export function clearSession(sessionId: string): void {
503 lastUuidMap.delete(sessionId)
504 sequentialAppendBySession.delete(sessionId)
505}
506
507/**
508 * Clear all cached session state (all sessions).

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected