Delete a Local Branch
You can delete a local Git branch that you no longer need to keep your workspace free of clutter. Typically, after your work on a branch is done and you've pushed your changes to a remote repository, it's good housekeeping to delete your local branch.
If your work required you to create a merge request, you can delete the branch immediately following the merge. For all other scenarios, you can use the Delete Local Branch option in the Git menu.
If you delete a branch that hasn't been pushed, its unique commits are likely to be lost. Make sure you push any commits you want to keep.
To delete a local branch: