There are two different methods to uninstall the Agent on Windows. Both methods remove the Agent, but do not remove the C:\ProgramData\Datadog
configuration folder on the host.
Add or remove programs
- Press CTRL and Esc or use the Windows key to run Windows Search.
- Search for
add
and click Add or remove programs. - Search for
Datadog Agent
and click Uninstall.
PowerShell
Note: Enable WinRM to use the commands below.
Use one of the following PowerShell commands to uninstall the Agent without rebooting:
start-process msiexec -Wait -ArgumentList ('/log', 'C:\uninst.log', '/q', '/x', (Get-CimInstance -ClassName Win32_Product -Filter "Name='Datadog Agent'" -ComputerName .).IdentifyingNumber, 'REBOOT=ReallySuppress')
Using /norestart
:
start-process msiexec -Wait -ArgumentList ('/log', 'C:\uninst.log', '/norestart', '/q', '/x', (Get-CimInstance -ClassName Win32_Product -Filter "Name='Datadog Agent'" -ComputerName .).IdentifyingNumber)
There are two different methods to uninstall the Agent on Windows. Both methods remove the Agent, but do not remove the C:\ProgramData\Datadog
configuration folder on the host.
Note: For Agent < v5.12.0, it’s important to uninstall the Agent with the original account used to install the Agent, otherwise it may not be cleanly removed.
Add or remove programs
- Press CTRL and Esc or use the Windows key to run Windows Search.
- Search for
add
and click Add or remove programs. - Search for
Datadog Agent
and click Uninstall.
PowerShell
Note: Enable WinRM to use the commands below.
Use the following PowerShell command to uninstall the Agent without rebooting:
start-process msiexec -Wait -ArgumentList ('/log', 'C:\uninst.log', '/norestart', '/q', '/x', (Get-CimInstance -ClassName Win32_Product -Filter "Name='Datadog Agent'" -ComputerName .).IdentifyingNumber)