Skip to content

daft remove

Delete branches and their worktrees

Usage

daft remove [OPTIONS] <BRANCHES>
daft remove -f <BRANCHES>

This is equivalent to git worktree-branch -d (safe delete). Use -f to force-delete branches regardless of merge status (git worktree-branch -D).

Description

Deletes one or more local branches along with their associated worktrees and remote tracking branches in a single operation. Arguments can be branch names or worktree paths.

Safety checks prevent accidental data loss. Use -f (--force) to override. For the default branch (e.g. main), -f removes its worktree only -- the local branch ref and remote branch are always preserved.

See Also

Released under the MIT License.