MCPcopy
hub / github.com/coder/mux / deleteWorkspace

Method deleteWorkspace

src/node/runtime/Runtime.ts:573–573  ·  view source on GitHub ↗

* Delete workspace directory * - LocalRuntime: Uses git worktree remove (with --force only if force param is true) * - SSHRuntime: Checks for uncommitted changes unless force is true, then uses rm -rf * Runtime computes workspace path internally from workdir + projectPath + workspaceName.

(
    projectPath: string,
    workspaceName: string,
    force: boolean,
    abortSignal?: AbortSignal,
    trusted?: boolean
  )

Source from the content-addressed store, hash-verified

571 * @returns Promise resolving to Result with deleted path on success, or error message
572 */
573 deleteWorkspace(
574 projectPath: string,
575 workspaceName: string,
576 force: boolean,

Callers 15

mainFunction · 0.65
removeMethod · 0.65
forkMethod · 0.65
createCoderArchiveHookFunction · 0.65
deleteWorkspaceMethod · 0.65

Implementers 1

MultiProjectRuntimesrc/node/runtime/multiProjectRuntime.t

Calls

no outgoing calls

Tested by

no test coverage detected