To clean branches from the command line.
git fetch --prune
But sometimes they still show up in VSC.
remove branches deleted on GitHub that still show in VS Code? However...
Local branches can be removed from Visual Studio Code by opening the Command Pallete (Ctrl-Shift-P) then Selecting Git: Delete Branch..., you can then delete the local branch by selecting the appropriate one from the list.