7
votes

In visual studio 2019 Team Explorer, I want to completely remove the connection to a azure devops project, but there is not remove button/menu item. The project is based on git and I don't care what happens to the local repo. I can delete it manually. I just want visual studio to forget it was ever connected to that project.

I can't believe there is not simple way to disconnect from a project!?!?!

2

2 Answers

7
votes

You can right-click the repo you want to remove, and then select the Remove option. It should be noted that once a repo is added, VS cannot remove the repo by default unless there is another repo, e.g in the figure below, I also have a local repository below. You have to switch to another repository to remove the current one, otherwise the displayed remove option will be unusable. enter image description here

Repeating the comment below because it's easier:

If you go to Team in the menu and select 'Disconnect from Server', then you are allowed to delete a connection without the need of creating a new connection"

1
votes

You can click on the plug icon in Team Explorer. You should land on the tab "Connect" where you find a link "Manage Connections".And then choose "Connect to a project" and you will get a dialog with all your connections. With the "Add TFS Server" link above the list of connections you can add and remove TFS server instances. Or you can remove the connection in the displayed connections. Team Explorer Connections