Hi @Rihan ,
Thank you for providing the details.
Based on the reported error, the deletion of the LDIDashboard-2022 pipeline appears to be blocked because one or more associated pipeline runs/builds are protected by a release retention or retention lease. Azure DevOps will not allow the retained run, or the pipeline associated with it, to be deleted until the applicable retention is removed.
Please try the following steps:
Navigate to Pipelines > Releases and identify whether any Classic Release pipeline is consuming artifacts from LDIDashboard-2022.
Review the associated releases. For releases that are no longer required, disable Retain indefinitely / Keep forever, or delete the release if permitted by your organization's retention requirements.
Navigate to Pipelines > Pipelines > LDIDashboard-2022 > Runs and check whether any runs have manually applied retention.
For runs that no longer need to be retained, remove the retention setting from the More actions menu on the run details page.
Once the applicable release/run retention locks are removed, retry deleting the LDIDashboard-2022 pipeline.
If the retaining build or release cannot be identified through the Azure DevOps UI, you can use the Azure DevOps Build REST API to identify the retention leases associated with the affected build:
Please delete a retention lease only after confirming that the associated release/build and artifacts are no longer required.
After completing the above steps, please retry deleting the pipeline and let us know the outcome.