MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / deleteWorkspace

Function deleteWorkspace

ui/src/components/workspace/api.ts:404–409  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

402}
403
404export async function deleteWorkspace(id: string): Promise<boolean> {
405 const res = await fetch(`/api/workspaces/${encodeURIComponent(id)}`, {
406 method: 'DELETE',
407 });
408 return res.ok;
409}
410
411export type WorkspaceMetadataPatch = { displayName?: string | null; description?: string | null };
412

Callers 2

handleConfirmDeleteFunction · 0.90
onDeleteFunction · 0.90

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected