Bulk remove Retention Leases to delete Azure DevOps Pipelines

Have you ever tried to delete an old Azure DevOps pipeline definition, only to be met with a frustrating error message stating it cannot be…