> For the complete documentation index, see [llms.txt](https://www.git-help.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.git-help.com/commands/delete-branch.md).

# delete branch

To delete a local branch

```
# To delete local branch (which is not there in server)

$ git branch -d <branchname>
```

To delete a remote branch

```
# To Delete Remote branch

$ git push -d <remote_name> <branchname>
$ git push -d origin <branchname>
```

<https://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-locally-and-remotely>
