delete branch console git code example
Example 1: how to delete branch locally
$ git branch -d <local-branch>
Example 2: remove branch local git
$ git branch -d branch_name
$ git branch -D branch_name
$ git branch -d <local-branch>
$ git branch -d branch_name
$ git branch -D branch_name