you do not need to delete old remote branches in git code example Example: remove old remote branches git git remote prune origin