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

Method deletePersisted

src/node/utils/eventStore.ts:123–130  ·  view source on GitHub ↗

* Delete persisted state from disk. * Does NOT clear in-memory state (use deleteState for that).

(workspaceId: string)

Source from the content-addressed store, hash-verified

121 * Does NOT clear in-memory state (use deleteState for that).
122 */
123 async deletePersisted(workspaceId: string): Promise<void> {
124 const result = await this.fileManager.delete(workspaceId);
125 if (!result.success) {
126 log.error(
127 `[${this.storeName}] Failed to delete persisted state for ${workspaceId}: ${result.error}`
128 );
129 }
130 }
131
132 /**
133 * Replay events for a workspace.

Callers 2

eventStore.test.tsFile · 0.80
deleteInitStatusMethod · 0.80

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected