Alex Rolley on 12 Oct, 2017 04:14 AM
Thanks for getting in touch!
The best way to keep this directory cleaned is by using Tentacle retention policies. I would suggest reading the documentation page on retention policies so that you can get an understanding on how they work and where they are configured. Deleting these files manually is not recommended as your Octopus instance expects these files to be there, however nothing fundamental should break (mainly our delta compression and Deployment Journals will not operate correctly).
Please let me know if there is anything else I can assist with!
unfortunately we can’t use the rentention policy for our sceneario. we are deploying wcf services which have the same name , but multiple main versions that are kept running at the same time. This support request below shows the details and describes how the current retention policies don’t leave the latest revision deploy of each main version in place. obviously then cleaning up prior main versions will break those wcf services. This is a really old request and there weren’t any changes made to how retention policies, so this is how it still behaves. I had to actually write a little console application which will cleanup deploy folders but follow versioning rules so it keeps the last deployment of each major version. We noticed recently that the Files folder was also using up more and more diskspace, which is what prompted the question as to whether we could clean that up manually.
maybe this enhancement request could be looked into again to see if it’s feasible to add this kind of retention directly to octopus?
or maybe octopus could be changed to have a setting to auto-cleanup that Files directory if you can use the rentention policies?
Senior Software Architect, Tech Advisor
Alex Rolley on 16 Oct, 2017 06:11 AM
Thanks for the extra information, it is very helpful. At this stage the best approach would be to manually clean up the directory and log a feature request via our UserVoice site. This will allow us to gauge community feedback and interest.
Please let me know if there is anything else that I can assist with,