# How to delete a branch with Nodered Projects

**URL:** https://discourse.nodered.org/t/how-to-delete-a-branch-with-nodered-projects/33566
**Category:** General
**Created:** [30 September 2020 12:44 UTC](https://discourse.nodered.org/t/how-to-delete-a-branch-with-nodered-projects/33566 "2020-09-30T12:44:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Charlotte](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@Charlotte](https://discourse.nodered.org/u/Charlotte)
#### Post date: [30 September 2020 12:44 UTC](https://discourse.nodered.org/t/how-to-delete-a-branch-with-nodered-projects/33566/1 "2020-09-30T12:44:50Z")

</div>

Hi,

I'm starting using Projects and I can't find how to delete a local branch, do you know how ?  
I merged and deleted it on my Bitbucket repo but I would like it to be deleted also locally.

Thank you

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [30 September 2020 12:50 UTC](https://discourse.nodered.org/t/how-to-delete-a-branch-with-nodered-projects/33566/2 "2020-09-30T12:50:24Z")

</div>

Hi @Charlotte

the node-red UI doesn't provide a way to delete a branch - you'll have to fall back to the command-line.

You will find your project under `~/.node-red/projects/<name-of-project>`

In that directory you can run `git branch -d <name-of-branch>`

If it complains about the branch not being fully merged (ie, it contains commits that are not in the main branch), and if you are _really_ sure you want to delete the branch, you can use `-D` instead of `-d`.

---

<div class="post-metadata">

### Author: ![Charlotte](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@Charlotte](https://discourse.nodered.org/u/Charlotte)
#### Post date: [30 September 2020 12:56 UTC](https://discourse.nodered.org/t/how-to-delete-a-branch-with-nodered-projects/33566/3 "2020-09-30T12:56:10Z")

</div>

Thanks a lot !

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [29 November 2020 12:56 UTC](https://discourse.nodered.org/t/how-to-delete-a-branch-with-nodered-projects/33566/4 "2020-11-29T12:56:13Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
