MCPcopy
hub / github.com/coder/mux / deleteState

Method deleteState

src/node/utils/eventStore.ts:85–87  ·  view source on GitHub ↗

* Delete in-memory state for a workspace. * Does NOT delete the persisted file (use deletePersisted for that).

(workspaceId: string)

Source from the content-addressed store, hash-verified

83 * Does NOT delete the persisted file (use deletePersisted for that).
84 */
85 deleteState(workspaceId: string): void {
86 this.stateMap.delete(workspaceId);
87 }
88
89 /**
90 * Check if in-memory state exists for a workspace.

Callers 2

eventStore.test.tsFile · 0.80
clearInMemoryStateMethod · 0.80

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected