MCPcopy
hub / github.com/microsoft/data-formulator / delete

Function delete

src/app/workspaceDB.ts:138–147  ·  view source on GitHub ↗

Delete a workspace and all its table data.

(id: string)

Source from the content-addressed store, hash-verified

136
137 /** Delete a workspace and all its table data. */
138 async delete(id: string): Promise<void> {
139 const db = await openDB();
140 try {
141 const store = txStore(db, 'readwrite');
142 await reqToPromise(store.delete(id));
143 } finally {
144 db.close();
145 }
146 await tableDataDB.deleteAll(id);
147 },
148
149 /** Update only the displayName (used by auto-name, manual rename). */
150 async updateDisplayName(id: string, displayName: string): Promise<void> {

Callers

nothing calls this directly

Calls 6

openDBFunction · 0.85
txStoreFunction · 0.85
reqToPromiseFunction · 0.85
tableKeyFunction · 0.85
deleteMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected