Uninstall the Collector for Windows
Describes how to uninstall the Splunk Distribution of OpenTelemetry Collector for Windows.
Follow these instructions to uninstall the Splunk Distribution of the OpenTelemetry Collector for Windows.
Uninstall using the Windows Control Panel
If you installed the Collector with the installer script, go to the Windows Control Panel and uninstall the Collector in Programs and Features.
The configuration files might persist in \ProgramData\Splunk\OpenTelemetry Collector
and \opt\td-agent
after uninstalling.
Uninstall using PowerShell
You can also uninstall the Collector for Windows using PowerShell:
$MyProgram = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\uninstall\* | Where { $_.DisplayName -eq "Splunk OpenTelemetry Collector" }
if (!$MyProgram) { throw "Splunk OpenTelemetry Collector is not installed" }
cmd /c $MyProgram.UninstallString