MCPcopy
hub / github.com/codeaashu/claude-code / destroySession

Method destroySession

src/server/web/session-manager.ts:321–323  ·  view source on GitHub ↗

* Force-kill a session immediately (used by the REST API).

(token: string)

Source from the content-addressed store, hash-verified

319 * Force-kill a session immediately (used by the REST API).
320 */
321 destroySession(token: string): void {
322 this.store.destroy(token);
323 }
324
325 destroyAll(): void {
326 this.store.destroyAll();

Callers 2

createAdminRouterFunction · 0.80
pty-server.tsFile · 0.80

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected