Uninstalling the host agent on Windows
You can uninstall the Instana agent on Windows by using either a graphical user interface (GUI) method or a command-line method.
Before you begin
Before you uninstall the Instana agent, you must uninstall any tracers (or in-process collectors) that are installed in your application runtimes.
If your host contains PHP runtimes and PHP tracing is enabled (by default) in the agent configuration.yaml file, uninstall the PHP tracer by following the steps in Disabling PHP tracing.
Uninstalling by using the GUI
Complete the following steps to uninstall the Instana agent by using the Windows graphical user interface:
-
Stop the Instana agent by running the following command:
<instana-agent-install-dir>\bin\stop.bat -
Uninstall any tracer components as described in the Before you begin section.
-
Go to Settings > Apps & features.
-
Find and select Instana agent version in the list of installed applications.
-
Click Uninstall and follow the prompts to complete the uninstallation.
Uninstalling by using the command line
You can use the command-line method to uninstall the Instana agent in automated or scripted deployment scenarios. This method is suitable for enterprise environments that require scriptable operations and works with both default and custom installation paths.
Complete the following steps to uninstall the Instana agent by using the command line:
-
Stop the Instana agent by running the following command:
<instana-agent-install-dir>\bin\stop.bat -
Uninstall any tracer components as described in the Before you begin section.
-
Navigate to the directory that contains the instana-agent-windows-64bit.exe file.
-
Run the following command to uninstall the agent:
.\instana-agent-windows-64bit.exe -uninstall -quietThe
-uninstallparameter removes the Instana agent from the system, and the-quietparameter runs the uninstallation without user interaction. -
Verify that the agent is removed. If needed, manually remove any remaining folders or registry entries.
Limitations
Be aware of the following limitations when you use the command-line uninstallation method:
- The uninstall command might not remove all folders or certain registry entries. You might need to manually remove these items after uninstallation.
- Tracer components are not automatically removed. You must manually uninstall tracers before you run the uninstall command.
- Future releases might include improvements to the cleanup process.