How do I uninstall Dynatrace OneAgent?

Your Dynatrace OneAgent has a dedicated uninstall program. You’ll need to run it to remove OneAgent from your system.

On Windows

Use the Windows Control Panel to remove Dynatrace OneAgent. 

After all OneAgent files have been removed from your system, you’ll need to reboot your machine to remove the agent libraries from memory. WinPcap provided by Dynatrace is also removed by the uninstaller.

On Linux

Go to the /opt/dynatrace/oneagent/agent directory and, using root rights, run the uninstall.sh script.

For Dynatrace OneAgent versions 102 and earlier, run the script from the /opt/ruxit/agent/ directory.

Note that on systems with an active SELinux policy, the process may take a while.

Following uninstall

Following uninstallation, log files and part of the configuration are preserved in the OneAgent installation directory. These files can be removed manually. Note however that if the configuration files have been removed, and OneAgent is re-installed, the host will show up as a new host with a different internal identifier.

On Windows

Log files are located at C:\Program Files (x86)\dynatrace\log

Configuration files are located at C:\ProgramData\dynatrace\oneagent\agent\config

On Linux

Log files are located at /opt/dynatrace/oneagent/log

Configuration files are located at /var/lib/dynatrace/oneagent/agent/config