(wsId: string, sessionId: string)
| 394 | |
| 395 | /** Permanently remove a session record (kills PTY first if running). */ |
| 396 | export 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 | |
| 404 | export async function deleteWorkspace(id: string): Promise<boolean> { |
| 405 | const res = await fetch(`/api/workspaces/${encodeURIComponent(id)}`, { |
no test coverage detected