Hi @Rihan
This error means one or more runs from LDIDashboard-2022 are protected by a release-retention lock. Azure DevOps won’t let you delete a retained run or a pipeline protected by its retention lease until you remove the retention.
Try the following:
- Open Pipelines > Releases and identify the classic release pipeline that consumes artifacts from LDIDashboard-2022.
- Review its existing releases. For releases that are no longer required, disable Retain indefinitely/Keep forever, or delete the releases if permitted by your organization’s retention requirements. Classic releases automatically retain the pipeline runs they consume.
- Open Pipelines > Pipelines > LDIDashboard-2022, review its runs, and remove any manually applied retention from More actions on the run-details page.
- After you remove the release and run retention locks, try deleting the pipeline again.
If the UI doesn’t reveal the retaining item, use the Azure DevOps Build REST API to retrieve the retention leases associated with the affected build. Microsoft also provides an API for deleting specific leases:
Only delete a lease after confirming that its associated release and artifacts are no longer required.
References:
Azure Pipelines retention policies
Get retention leases for a build
Help make this community better for everyone: If this answer helped or resolved your issue, please accept it or upvote it. If not, share more details in a comment so we can continue the discussion and find the right solution. Thank you.