git remove deleted remote branches

C++
git fetch origin --prune
git fetch origin --prunenpx git-removed-branches --prune

Source

Also in C++: