MCPcopy Index your code
hub / github.com/microsoft/data-formulator / deleteWorkspace

Function deleteWorkspace

src/app/workspaceService.ts:93–106  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

91
92/** Delete a workspace. */
93export async function deleteWorkspace(id: string): Promise<void> {
94 const backend = await _getBackend();
95 if (backend === 'ephemeral') {
96 await workspaceDB.delete(id);
97 _notifyListChanged();
98 return;
99 }
100 await apiRequest(getUrls().SESSION_DELETE, {
101 method: 'POST',
102 headers: { 'Content-Type': 'application/json' },
103 body: JSON.stringify({ id }),
104 });
105 _notifyListChanged();
106}
107
108/** Update only the display name in workspace_meta.json (lightweight, no full state). */
109export async function updateWorkspaceMeta(id: string, displayName: string): Promise<void> {

Callers 4

DataSourceSidebarPanelFunction · 0.90
DataFormulatorFCFunction · 0.90
SingleThreadGroupViewFunction · 0.90
handleDeleteFunction · 0.90

Calls 5

apiRequestFunction · 0.90
getUrlsFunction · 0.90
_getBackendFunction · 0.85
_notifyListChangedFunction · 0.85
deleteMethod · 0.45

Tested by

no test coverage detected