# Git Clean Worktrees

> Remove git worktrees safely without force.

- Skill: `motlin/git-clean-worktrees` (Agent Skill)
- Install (CLI): `npx skillmds@latest add motlin/git-clean-worktrees`
- Raw SKILL.md: https://api.skillmd.com/api/skills/motlin/git-clean-worktrees/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: motlin (https://skillmd.com/u/motlin)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/motlin/git-clean-worktrees

---


# Git Clean Worktrees

Remove the requested worktrees only if Git can do so without `--force`.

Do not pre-check status or unpushed commits. Run:

```bash
git worktree remove <worktree>
```

If Git refuses, report the error. Do not use `--force` unless the user explicitly asks for a destructive operation.

