git delete local and remote branch to a new one code example
Example 1: delete local branch git
git branch -d <branch_name>
Example 2: cmd delete branch
git branch -d yourBranch # delete local branch
git push origin --delete yourBranch # delete branch on repo/push change