Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Team Services: delete repository

In Visual Studio Team Services, I mistakenly added a Git repository to an existing project which was under TFVC, so now the project has two repositories.

The problem is, I can't find any option to remove this repository from the project. The only option I find is to delete the entire project (obviously not what I want to do).

Searching online yields no useful results, as all the articles appear to be about deleting a project, can't find anything about removing a repository from a project.

like image 264
Master_T Avatar asked Jan 22 '16 12:01

Master_T


People also ask

How do I delete a repository in Visual Studio?

In the version control administration you can right-click the repository and choose 'Delete repository'.

How do I delete a Git repository code in Visual Studio?

Right-click the project in the Project Explorer panel and then choose Source Control > Delete Repository from the context menu.


2 Answers

Delete Git Repositories only available when you have multiple Git repos in one Git-based project. So there isn't any way to delete the Git repo in your case. You can submit a feature request on Microsoft User Voice: http://visualstudio.uservoice.com/forums/330519-team-services

like image 45
Eddie Chen - MSFT Avatar answered Oct 12 '22 11:10

Eddie Chen - MSFT


In my case the solution from the comment by Pascal Berger worked: I've created a second, empty repository, and after I had two repositories the "Delete" option become visible when right-clicking any repository.

like image 70
BartoszKP Avatar answered Oct 12 '22 13:10

BartoszKP