# Delete Branches

Keep your dbt™ project repository organized by deleting branches that are no longer needed. Paradime offers two approaches: [automated pruning](#one-click-branch-pruning) that removes multiple merged branches at once, and [manual deletion](#manual-branch-deletion) for removing specific branches individually.

***

### One-Click Branch Pruning

One-Click Branch Pruning automatically identifies and removes local branches that have been merged and deleted on remote. This feature eliminates the need for manual cleanup and helps maintain an organized workspace.

{% hint style="success" %}

#### Benefits

* **Automatic Detection**: Instantly identifies branches that were deleted on remote
* **Safe Cleanup**: Only removes branches that have been properly merged
  {% endhint %}

Branch pruning is available for both [GitLite](#git-lite) and [Git Advanced](#git-advanced) users. See below step by step instructions:

{% tabs %}
{% tab title="Git Lite" %}
**Step-by-Step Instructions:**

1. **Open Git Lite panel** in the left sidebar
2. **Click the scissor icon** to access branch pruning
3. **Review the branches** that will be removed (shows exactly which branches will be deleted)
4. **Confirm the cleanup** to remove all identified branches

{% @arcade/embed flowId="V070TnrZOPJjTDqVc24f" url="<https://app.arcade.software/share/V070TnrZOPJjTDqVc24f>" %}
{% endtab %}

{% tab title="Git Advanced" %}
**Step-by-Step Instructions:**

1. **Open Git panel** in the left sidebar
2. **Click the three-dot menu (⋯)** on top left of side bar
3. **Select "Prune deleted branches" from the dropdown**
4. **Review the branches** that will be removed (shows exactly which branches will be deleted)
5. **Confirm the cleanup** to remove all identified branches

{% @arcade/embed flowId="7MCGhrnJKTbBBEX3ztec" url="<https://app.arcade.software/share/7MCGhrnJKTbBBEX3ztec>" %}
{% endtab %}
{% endtabs %}

{% hint style="info" %}

#### Smart Detection

The pruning feature shows you exactly which branches will be removed before deletion, eliminating guesswork and preventing accidental removal of important branches.
{% endhint %}

***

### Manual Branch Deletion

For Git Advanced users who need to delete specific branches individually or remove branches that haven't been merged yet.

**Step-by-Step Instructions:**

1. **Open the Git Advanced panel** in the left sidebar
2. **Click the three-dot menu (⋯)** on top left of side bar
3. **Select "Delete Branches"** from the dropdown
4. **Choose the specific branch** you want to delete from the list
5. **Confirm the deletion**

{% @arcade/embed flowId="iqZsKz3tAuDg5oyfZo9a" url="<https://app.arcade.software/share/iqZsKz3tAuDg5oyfZo9a>" %}

{% hint style="danger" %}
A branch can only be deleted from the UI if it has already been pushed and merged with the remote branch. To force delete an unmerged branch, use the terminal command: **`git branch -D <branch_name>`**
{% endhint %}
