Goal
Explain how the Tentacle package cache is managed in Octopus versions before 2025.4, and show how to tell package-cache files apart from deployment files kept by your configured retention policies.
In versions before 2025.4, files in the Tentacle package cache are not governed by retention policies. The cache is instead cleaned automatically only when free disk space on the cache drive drops below the default threshold of 20%. This article helps you confirm which files are which so you can plan disk usage correctly.
Prerequisites
- An Octopus version before 2025.4. (If you are on a version with configurable machine package cache retention, this behavior does not apply - see Related.)
Steps
-
Understand the distinction.
-
Retained deployment files - extracted packages and deployment files on the Tentacle that are governed by the Tentacle retention policy configured on your lifecycle (for example, "keep the last 3 releases").
-
Package cache files - the downloaded package files the Tentacle keeps to speed up future deployments. Before 2025.4, these are not subject to retention policy rules.
-
Review your Tentacle retention policy.
In the Octopus Web Portal, open the lifecycle used by your project and expand the Retention Policy section. Note the rule applied to extracted packages/files on Tentacles. This rule governs the retained deployment files, not the package cache. -
Locate the package cache on the Tentacle.
On the Tentacle machine, identify the package cache directory used by your installation.
Default:
- Windows: C:\Octopus\Tentacle-Instance-Name\Files\PackageCache
-
Linux: /etc/octopus/Tentacle-Instance-Name/Files/PackageCache
-
Identify package-cache files versus retained deployment files.
-
Files sitting in the package cache directory are cache entries. They persist regardless of retention policy and remain until the automatic disk-space cleanup runs.
-
Extracted package folders under the applications/deployment directory are retained deployment files and are cleaned up according to your Tentacle retention policy.
-
Understand when the cache is cleaned automatically.
In versions before 2025.4, the package cache is cleaned automatically only when free disk space on the cache drive falls below the default 20% threshold. Until that point, cached package files are kept even if your retention policy keeps very few releases. -
If you need to reclaim space sooner, free disk space by other means appropriate to your environment (for example, moving the cache to a larger drive, or manually clearing cache files while the Tentacle service is not mid-deployment).
Verify
- The files you expected the retention policy to remove (extracted release deployment files) are gone after the policy runs.
- Files that remain in the package cache directory while disk free space is above 20% are expected, and confirm the cache is not governed by retention policies on this version.
- After free disk space drops below the 20% threshold, confirm the package cache is reduced automatically.
Related
- Octopus documentation: Machine Policies - covers configurable machine package cache retention (2025.3+) and health-check disk capacity checks.
- Octopus documentation: Retention policies on lifecycles (governs retained release deployment files).