remove all remote branches git code example Example: remove old remote branches git git remote prune origin