Your OneAgent has a dedicated uninstall program. You'll need to run it to remove OneAgent from your system.
Use the Windows Control Panel to remove 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.
To silently uninstall OneAgent using Windows command line, run the following WMIC commands as an administrator.
> wmic product where name='Dynatrace OneAgent' call uninstall /nointeractive
or
> wmic product where name='Dynatrace OneAgent' get IdentifyingNumberIdentifyingNumber{12345678-ABCD-1234-ABCD-12345678ABCD}> msiexec /x {12345678-ABCD-1234-ABCD-12345678ABCD} /quiet /l*vx uninstall.log
You can omit /l*vx uninstall.log
if the log file is not relevant to you.
PS> $app = Get-WmiObject win32_product -filter "Name like 'Dynatrace OneAgent'"PS> msiexec /x $app.IdentifyingNumber /quiet /l*vx uninstall.log
Following uninstallation, log files, the user running OneAgent, and part of the configuration are preserved in the OneAgent installation directory. These 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.
For a complete OneAgent uninstallation, remove the following:
%PROGRAMDATA%\dynatrace\oneagent\log
.%PROGRAMDATA%\dynatrace\oneagent\agent\config
.