Removing old git repositories - climsoft/Climsoft GitHub Wiki
Sometimes we need to remove Local Git Repositories in Visual Studio, but unfortunately, there is no option to do this in Visual Studio itself (Removing local code repositories will lose any changes you may have made locally to code files).
To remove your local copy, first, go to to the Connect
section of Team Explorer (shown circled in green below), then right-click on the repository that you want to delete and choose Open in File Explorer
(see circled in red below).
This will open the folder on your machine that contains the repository we are removing. Next go up one level to the parent folder, and delete the folder that you want to remove from Visual Studio (you will have to closed Visual Studio before you are able to do this).