There are two ways in which you can delete a local branch in Git. Both of the ways are described as below :
The first way to delete a local git branch is by using the -d git command. This command will only work when you have commited all your changes and pushed it to the server. The syntax for deleting the local branch is highlighted below.
git branch -d Branch_Name
Example : git branch -d feature1
Here feature1 is the local branch you want to delete.
There will be cases when you will want to delete your local branch for example when your local branch becomes corrupt. In this case when you have decided to delete the branch forcefully, then you can using the -D git command. The syntax below highlights how this can be acheived.
git branch -D Branch_Name