A snapshot: read at commit 707a04c7ce8 on 2026-10-18T00:06:01Z by majordomus 0.29.0. Nothing on this page is read again. See it live
majordomus worktree remove
Remove one linked worktree by branch or path. Never the primary checkout, never a branch, never uncommitted work without --force
What it is
destructiveRemove one linked worktree by branch or path. Never the primary checkout, never a branch, never uncommitted work without --force
- Identity
executable.worktree.remove- Program
- executable
- Runs
- non interactive
- Requires
- repository
No machine surface carries this command: effect Destructive is above the machine ceiling LocalMutation
Where it appears
- Command line
majordomus worktree remove- Workflow
just worktree-remove- MCP tool
- —
- HTTP
- —
- Declared in
apps/majordomus-cli/src/cli.rs- Capability
- —
Arguments
| argument | values from | required | help |
|---|---|---|---|
<SELECTOR> | yes | An exact branch name or an exact path | |
--force | — | Remove it even though it holds uncommitted work or is locked | |
--repo | — | Start the search for the repository root here (default: the current directory) | |
--discovery | — | How declarative files are enumerated | |
--strict | — | Refuse to proceed when any file of the layer carries an error diagnostic | |
--share | — | The tool distribution's share directory (kinds.yaml, schemas/); default: $MAJORDOMUS_SHARE, then the repository's own share/, then the one beside the executable | |
--format | — | Output shape |