To delete a branch locally: git branch -D <branchName> And to remove the remote branch: git push origin --delete <branchName> vagy git push origin :<branchName>