Uninstall APM Dotnet Agent
Uninstall APM Dotnet Agent in Windows
To uninstall the APM Dotnet agent in Windows, do the following:
- Prepare PowerShell.
Follow the step: Prepare PowerShell from Deploy the APM Dotnet Agent
- Unregister the application.
- Unregister Windows service.
Unregister-OpenTelemetryForWindowsService -WindowsServiceName <WindowsServiceName>
- Unregister IIS server.
Unregister-OpenTelemetryForIIS
- If you registered .NET Framework DLLs in GAC during the Dotnet agent deployment, you need to unregister DLLs from GAC.
Unregister-OpenTelemetryDllsFromGac
- Unregister Windows service.
- Remove the destination directory where you provisioned APM Dotnet agent.
Uninstall APM Dotnet Agent in Linux
To uninstall the APM Dotnet agent in Linux, do the following:
- Stop your applications that are running with the APM Dotnet agent.
- Remove the destination directory where you provisioned the APM Dotnet agent.
- Restart your applications without any Dotnet agent specific environment variables.