remove old remote branches git

C++
git remote prune origin

Source

Also in C++: