# Dynatrace Managed - Linux file system "/var/opt/dynatrace-managed/agents" is taking a lot of space. What to do?

**URL:** <https://community.dynatrace.com/t/dynatrace-managed-linux-file-system-var-opt-dynatrace-managed-agents-is-taking-a-lot-of-space-what-to-do/39903>\
**Category:** Troubleshooting\
**Tags:** dynatrace-managed, cluster-management-console\
**Created:** [May 25, 2023, 4:53am UTC](https://community.dynatrace.com/t/dynatrace-managed-linux-file-system-var-opt-dynatrace-managed-agents-is-taking-a-lot-of-space-what-to-do/39903 "2023-05-25T04:53:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadeem\_m](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nadeem_m/32/18048_2.png) [@nadeem\_m](https://community.dynatrace.com/u/nadeem_m)\
**Post date:** [May 25, 2023, 4:53am UTC](https://community.dynatrace.com/t/dynatrace-managed-linux-file-system-var-opt-dynatrace-managed-agents-is-taking-a-lot-of-space-what-to-do/39903/1 "2023-05-25T04:53:05Z")

</div>

#### Dynatrace Managed cluster nodes are filled with old downloaded packages in&nbsp;“/var/opt/dynatrace-managed/agents”. It is totally filled with 50 GB+ data. What to do?&nbsp;

Note that it not recommended to directly delete the old packages from this directory. Installers in “/var/opt/dynatrace-managed/agents” will be automatically deleted when they are no longer in use and all the running agents are updated properly. There is a 30 days grace period before the actual deletion will happen.

Also note that for automatic deletion to work, there should be automatic updates everywhere - Cluster, Oneagent and ActiveGates. If there is just one instance which is using some lower version it will not get deleted automatically. If you will look in /var/opt/dynatrace-managed/agents you will see folders by release versions. If something inside it, is being used, it will not auto-delete after 30 days. So, just automatic update is not enough - lower versions should not be in active state on any machine.

If cluster is not up to date or has manual update set up, the other way to tackle is to exclude the packages manually from CMC:

 ![CMC.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/c/0c3fdb7886d3de736d8a438d1b18e8d9089dd5b9.png)

_We have this feature (Self-service update packages management) enabled in CMC since Dynatrace Managed 1.216_&nbsp;:

[https://www.dynatrace.com/support/help/shortlink/release-notes-managed-sprint-216#cluster-management-console](https://www.dynatrace.com/support/help/shortlink/release-notes-managed-sprint-216#cluster-management-console)

I hope it helps in managing the&nbsp;“/var/opt/dynatrace-managed/agents” and cleaning up some space on Managed Cluster nodes.

If you require more assistance please get in touch with our product/tech support.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [May 25, 2023, 11:46am UTC](https://community.dynatrace.com/t/dynatrace-managed-linux-file-system-var-opt-dynatrace-managed-agents-is-taking-a-lot-of-space-what-to-do/39903/2 "2023-05-25T11:46:04Z")

</div>

great write up&nbsp;[@nadeem\_m](https://community.dynatrace.com/user/47494)&nbsp;thanks for sharing this!
