MCPcopy
hub / github.com/AutoMaker-Org/automaker / delete

Method delete

apps/ui/tests/utils/api/client.ts:109–123  ·  view source on GitHub ↗

* Delete a worktree

(
    projectPath: string,
    worktreePath: string,
    deleteBranch: boolean = true
  )

Source from the content-addressed store, hash-verified

107 * Delete a worktree
108 */
109 async delete(
110 projectPath: string,
111 worktreePath: string,
112 deleteBranch: boolean = true
113 ): Promise<{ response: APIResponse; data: WorktreeDeleteResponse }> {
114 const response = await this.page.request.post(API_ENDPOINTS.worktree.delete, {
115 data: {
116 projectPath,
117 worktreePath,
118 deleteBranch,
119 },
120 });
121 const data = await response.json();
122 return { response, data };
123 }
124
125 /**
126 * List all worktrees

Callers 15

sw.jsFile · 0.45
confirmDeleteSessionFunction · 0.45
killTerminalFunction · 0.45
killTerminalTabFunction · 0.45
TerminalViewFunction · 0.45
ContextViewFunction · 0.45
toggleSectionFunction · 0.45
toggleFolderFunction · 0.45
toggleFolderFunction · 0.45
handleValidationEventFunction · 0.45

Calls 1

postMethod · 0.80

Tested by

no test coverage detected