Delete Test Runs API not working as expected

Tim Wintle 0 Reputation points
2023-05-12T07:22:52.2833333+00:00

We are within a test phase for much of our automated testing as we move from JIRA to ADO and so I was trying to clean up the test runs on our system. I first used this API to get a list of test runs:

https://learn.microsoft.com/en-us/rest/api/azure/devops/test/runs/list?view=azure-devops-rest-7.0&tabs=HTTP

Then I used this API to delete them in bulk

https://learn.microsoft.com/en-us/rest/api/azure/devops/test/runs/delete?view=azure-devops-rest-7.0&tabs=HTTP

The runs now do not show in the test run data when ran from the UI, suggesting that they have been deleted, yet when I run the test run list, it seems to return everything that has supposedly been "Deleted". Additionally, it seems the progress report does not have the progress from those test runs removed. Please could you advise how I can completely remove these items ahead of us starting to use the product in earnest for automation?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,143 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MuthuKumaranMurugaachari-MSFT 22,256 Reputation points
    2023-05-12T13:42:23.09+00:00

    Tim Wintle Thank you for posting your questions in Microsoft Q&A. Currently, Azure DevOps is not supported in Q&A forums. Please ask the experts in the dedicated Azure DevOps forum https://techcommunity.microsoft.com/t5/azure-devops/bd-p/AzureDevOpsForum and https://developercommunity.visualstudio.com/AzureDevOps/report. The product group for DevOps/TFS can assist you with your question.

    Supported products of Q&A forums are listed in https://docs.microsoft.com/en-us/answers/products/ (more to be added later).

    0 comments No comments