Forum Discussion

UdoKnop's avatar
UdoKnop
Copper Contributor
Oct 04, 2024
Solved

Permanently delete more than 20.000 work items from Azure DevOps recycle bin

How do I permanently delete more than 20.000 work items in Azure DevOps recycle bin?   I tried to solve it programmatically via the Azure DevOps REST API: https://learn.microsoft.com/en-us/rest/ap...
  • UdoKnop's avatar
    UdoKnop
    Oct 06, 2024

    Kidd_Ip 
    The problem is not to destroy a specific work item. The problem is how to figure out, which work items (or ids) are in recycle bin.

     

    I have implemented the following work around now:

    I delete all work items which are within a given range of startWorkItemId and endWorkItemIf, and ignore all failed delete operations. This approach works quite well, but is very slow if the range is huge.

Resources