Docs » Get started with the Splunk Distribution of the OpenTelemetry Collector » Get started with the Collector for Windows » Uninstall the Collector for Windows

Uninstall the 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, the Collector can be uninstalled from Programs and Features in the Windows Control Panel. The configuration files might persist in \ProgramData\Splunk\OpenTelemetry Collector and \opt\td-agent after uninstall.

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

This page was last updated on Apr 10, 2025.