> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clawker.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# clawker worktree prune

## clawker worktree prune

Remove stale worktree entries from the registry

### Synopsis

Removes worktree entries from the project registry when the worktree
directory, git metadata, or branch no longer exists.

This can happen when:

* Native 'git worktree remove' was used (bypasses clawker registry)
* 'clawker worktree remove' failed partway through
* Manual deletion of worktree directory

Use 'clawker worktree list' to see which entries are stale before pruning.

```
clawker worktree prune [flags]
```

### Examples

```
  # Preview what would be pruned
  clawker worktree prune --dry-run

  # Remove all stale worktree entries
  clawker worktree prune
```

### Options

```
      --dry-run   Show what would be pruned without removing
  -h, --help      help for prune
```

### Options inherited from parent commands

```
  -D, --debug   Enable debug logging
```

### See also

* [clawker worktree](clawker_worktree) - Manage git worktrees for isolated branch development
