delete PR from Azure Repo

M Usman Siddiqui 0 Reputation points
2025-02-24T09:14:14.17+00:00

We have unfortunately added some information in a PR(3 PRs) and now we want to delete that information. but since its already uploaded into a branch in Azure Repo and have created a PR as well. we can not find any way to completely remove the PR from Azure Repos.

Is there any way to delete the PR from Azure Repos so that PR can not be found/searched?

Azure DevOps
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Arko 490 Reputation points Microsoft External Staff
    2025-03-06T05:31:02.7766667+00:00

    Hello M Usman Siddiqui,

    Unfortunately, Azure Repos does not allow you to delete a pull request entirely. However, you can follow these steps to remove the sensitive information and make the PR inaccessible

    Option 1- Find the PR and click Abandon and close the PR without merging.

    enter image description here

    Find the branch related to the PR and delete it. Delete the branch (removes history from the repo).

    Option2- If the PR is open, rebase and force push

    Checkout-


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.