date based retention policies
we are constantly switching branches that we install to our different environments. Noticed the disk are running full and realized it is because packages from old branhces are never automatically removed with current retention policies.
Teamcity has the feature of cleaning out "More than X days older than the last 'build'" and "Older than the X-th successful 'build'"
As I'm writing this I realize it might be quite hard to figure out if a deployment is still in use.. maybe if no current octopus project maps against the packages installed on the tentacle, it can remove the packages/applications from the tentacle?