git prune local branches not in remote
git fetch --prune
# or simply
git fetch -p
git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D
# or -d for safe deletion of branches that have been fully merged into their remote branches