* Delete a Coder workspace. * * Safety: Only deletes workspaces with "mux-" prefix to prevent accidentally * deleting user workspaces that weren't created by mux.
(name: string)
| 1517 | * deleting user workspaces that weren't created by mux. |
| 1518 | */ |
| 1519 | async deleteWorkspace(name: string): Promise<void> { |
| 1520 | const result = await this.deleteWorkspaceEventually(name, { |
| 1521 | timeoutMs: 30_000, |
| 1522 | waitForExistence: false, |
| 1523 | }); |
| 1524 | |
| 1525 | if (!result.success) { |
| 1526 | throw new Error(result.error); |
| 1527 | } |
| 1528 | } |
| 1529 | |
| 1530 | /** |
| 1531 | * Ensure mux-owned SSH config is set up for Coder workspaces. |
nothing calls this directly
no test coverage detected