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