delete-worktrees

Delete multiple Git worktrees and associated branches in a batch operation.

1|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/YH-05/finance --skill delete-worktrees
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: delete-worktrees
Source: https://github.com/YH-05/finance/tree/main/.claude/skills/delete-worktrees
Command: npx skills add https://github.com/YH-05/finance --skill delete-worktrees

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of cleaning up multiple Git worktrees and their associated branches, especially after development tasks are completed.

Core Features & Use Cases

  • Batch Worktree Removal: Delete multiple worktrees and branches simultaneously.
  • Automated Cleanup: Integrates with a /worktree-done command for safe and efficient removal.
  • Use Case: After completing several feature branches (e.g., feature/issue-64, feature/issue-67), use this skill to remove all their corresponding worktrees and branches in one go, keeping your repository tidy.

Quick Start

Use the delete-worktrees skill to remove worktrees for branches feature/issue-64 and feature/issue-67.

Frequently Asked Questions about delete-worktrees

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delete multiple Git worktrees and their associated branches at once?

To delete multiple Git worktrees and associated branches simultaneously, use batch cleanup operations that coordinate parallel execution of the `/worktree-done` command for specified branches, ensuring efficient repository maintenance.

What is the best way to clean up finished Git feature branches and worktrees?

The best way to clean up finished Git feature branches and worktrees is through batch removal. This automates the deletion process for multiple completed branches like `feature/issue-64` in one go, keeping your repository tidy.

How does automated worktree cleanup handle branch verification?

Automated worktree cleanup handles branch verification by checking branch status before removal and handling errors gracefully. This ensures safe deletion of worktrees and their associated branches without risking data loss.

Can I remove several Git worktrees in parallel without manual deletion?

Yes, you can remove several Git worktrees in parallel without manual deletion. The batch operation coordinates parallel execution of the `/worktree-done` command across specified branches to facilitate efficient repository cleanup.