xxxxxxxxxx
# Fetch changes from all remotes and locally delete
# remote deleted branches/tags etc
# --prune will do the job :-;
git fetch --all --prune
xxxxxxxxxx
## How to delete a git remote branch
git push origin --delete <branch-name>
## With love @kouqhar
xxxxxxxxxx
#delete remote branch
git push -d <remote_name> <branch_name>
#example: git push -d origin new_feature
#delete local branch
git branch -d <branch_name>
#example: git branch -d new_feature