Delete a Git repo from your project

Azure DevOps Services | Azure DevOps Server 2020 | Azure DevOps Server 2019 | TFS 2018

Remove unused Git repos from your project when they are no longer needed. The steps in this article show how to delete a Git repo from your Azure DevOps project. If you want to delete the entire project, see Delete a project.

Important

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

Prerequisites

Note

If you want to use the Azure DevOps CLI az repos delete command, follow the steps in Get started with Azure DevOps CLI.

Delete a Git repo from the web

Tip

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.

  1. Select Repos, Files.

    View your branches

  2. From the repo drop-down, select Manage repositories.

    Manage repositories

  3. Select the name of the repository from the Repositories list, choose the ... menu, and then choose Delete repository.

    Delete repository

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

    Delete repository confirm

  1. Select the settings icon in the web to bring up the project administration page and choose Version Control.

    Version control settings

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

    remove the Azure DevOps Services repo using the ellipses link next to the repo name

    Note

    If the Repositories pane is not expanded, select > to expand it and display the list of repositories.

    Repositories pane

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

    Delete repository confirm