Delete a Git repo from your team project

VSTS | TFS 2018 | TFS 2017 | TFS 2015

Remove unused Git repos from your team project when they are no longer needed.


Consider renaming the repo and locking its default branch instead of removing it. The commit history of the repo will be lost when it is deleted.


You cannot remove a repo if it is the only Git repo in the Team Project. If you need to delete the only Git repo in a Team Project, create a new Git repo first, then delete the repo.

You must have Delete Repository permissions to delete a repo from a team project.

Delete a Git repo from the web

  1. Select the settings icon in the web to bring up the team project administration page.

    open up the administrative area of the VSTS web portal for your team project

  2. Select Version Control.

  3. Select the Git repository to remove from the list shown and select the ... next to the name. Choose Delete Repository

    remove the VSTS repo using the ellipses link next to the repo name

  4. Confirm the deletion of the repository by typing the repo's name and selecting Delete.