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

Function deleteSession

ui/src/components/workspace/api.ts:396–402  ·  view source on GitHub ↗
(wsId: string, sessionId: string)

Source from the content-addressed store, hash-verified

394
395/** Permanently remove a session record (kills PTY first if running). */
396export async function deleteSession(wsId: string, sessionId: string): Promise<boolean> {
397 const res = await fetch(
398 `/api/workspaces/${encodeURIComponent(wsId)}/sessions/${encodeURIComponent(sessionId)}`,
399 { method: 'DELETE' },
400 );
401 return res.ok;
402}
403
404export async function deleteWorkspace(id: string): Promise<boolean> {
405 const res = await fetch(`/api/workspaces/${encodeURIComponent(id)}`, {

Callers 1

WorkspacesProviderFunction · 0.90

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected