Forum Discussion
ibr00ks
Nov 08, 2021Copper Contributor
Remove retention policy from a batch of runs for pipeline cleanup
Hello! We've recently made a major infrastructure change to our system and as a result we have a lot of obsolete pipelines to clean up. For some pipelines with only a few runs I was able to manua...
asturlan
Apr 13, 2022Copper Contributor
As far as I researched, I haven't found a way to remove retention leases from builds all at once trough the UI.
I've quickly built a tool for this purpose in Node.js that goes trough the builds of a pipeline and deletes leases that retain those builds. You can then delete the pipeline as you normally would.
https://github.com/asturlan/RetentionLeaseRemover
Hopefully, you will find it useful.