# CrashLoopBackOff: Downgrading OneAgent is not supported, uninstall the old version first

**URL:** <https://community.dynatrace.com/t/crashloopbackoff-downgrading-oneagent-is-not-supported-uninstall-the-old-version-first/42893>\
**Category:** Troubleshooting\
**Tags:** kubernetes\
**Created:** [December 14, 2023, 7:50pm UTC](https://community.dynatrace.com/t/crashloopbackoff-downgrading-oneagent-is-not-supported-uninstall-the-old-version-first/42893 "2023-12-14T19:50:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darynakovyrina](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/darynakovyrina/32/30846_2.png) [@darynakovyrina](https://community.dynatrace.com/u/darynakovyrina)\
**Post date:** [December 14, 2023, 7:50pm UTC](https://community.dynatrace.com/t/crashloopbackoff-downgrading-oneagent-is-not-supported-uninstall-the-old-version-first/42893/1 "2023-12-14T19:50:00Z")

</div>

**Dynatrace Operator**

If you get this error, the OneAgent version installed on your host is later than the version you’re trying to run.

**Solution:** First uninstall OneAgent from the host, and then select your desired version in the Dynatrace web UI or in DynaKube. To uninstall OneAgent, connect to the host and run the `uninstall.sh` script. (The default location is `/opt/dynatrace/oneagent/agent/uninstall.sh`)

For CSI driver deployments, use the following commands instead:

1. Delete the DynaKube custom resources.
2. Delete the CSI driver manifest.
3. Delete the `/var/lib/kubelet/plugins/csi.oneagent.dynatrace.com` directory from all Kubernetes nodes.
4. Reapply the CSI driver and DynaKube custom resources.
