Delete old packages from built-in feed


Is it possible to delete old packages from build-it feed automatically?
For example, if I have versions of one package from to and I want to leave in feed only from (last 20).

Maybe, we can create custom Task for this purpose.

Thank you in advance.


Apart from using the API, no, it needs to be done manually.

However, you can configure retention policies in Octopus to automatically delete your releases once they reach a certain age.

Once releases are deleted, any packages that are orphaned will also be deleted.


Thanks Paul,

I will try with retention policies.