Here is the scenario
Everything looks fine, now I wanted to merge these all new features to main branch
Committed and synced on server all news changes are going to feature branch
We can just delete the remote-tracking branches at VS with the command "git config remote.origin.prune true" or set the "Prune remote branches during fetch" combo (Team Explorer->Settings->Git Global Settings) is true.
The various prune options (git remote update --prune, git remote prune, git fetch --prune) only delete remote-tracking branches.
If we want to deleted the local branches, we can only delete them manually.
You'll need to manually delete local branches you no longer want, or change or remove their upstream setting if the remote-tracking branch no longer exists.
For more details, you can rewards here: git fetch origin --prune doesn't delete local branches?