Collector Removal - Windows

Removing a collector from Windows

When removing a collector running on windows you will need to open command prompt, or powershell as administrator, enter the following commands in the steps below:

CMD Commands

net stop “BindPlane Collector”
sc delete “BindPlane Collector”
rmdir /S %BINDPLANE_HOME%
reg delete HKEY_CURRENT_USER\Environment /v BINDPLANE_HOME /f
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v BINDPLANE_HOME /f
setx throwaway BINDPLANE_HOME

Powershell Commands

stop-service “BindPlane Collector”
sc.exe delete “BindPlane Collector”
Remove-Item -path $env:BINDPLANE_HOME -Recurse
[System.Environment]::SetEnvironmentVariable('BINDPLANE_HOME', $null,[System.EnvironmentVariableTarget]::Machine)
[System.Environment]::SetEnvironmentVariable('BINDPLANE_HOME', $null,[System.EnvironmentVariableTarget]::User)