use: git remote prune origin
or use git remote prune origin --dry-run to see which branches will be deleted.
Like in git help remote
prunes
Deletes all child branches of remote tracking. These obsolete branches are already removed from the remote repository referenced, but are still locally available in "remotes /".
With the --dry-run option, tell which branches will be trimmed, but not really trimmed.
Ryan le
source share