Linux

chkconfig bpagent off
service bpagent stop
chkconfig --del bpagent
rm /etc/rc.d/init.d/bpagent
rm -rf /opt/bpagent
chkconfig bpagent off
service bpagent stop
chkconfig --del bpagent
rm /etc/rc.d/init.d/bpagent
rm -rf /opt/bpagent
systemctl stop bpagent
systemctl disable bpagent
rm /etc/systemd/system/bpagent.service
rm -rf /opt/bpagent
systemctl daemon-reload
systemctl reset-failed
systemctl stop bpagent
systemctl disable bpagent
rm /etc/systemd/system/bpagent.service
rm -rf /opt/bpagent
systemctl daemon-reload
systemctl reset-failed
systemctl stop bpagent
systemctl disable bpagent
rm /etc/systemd/system/bpagent.service
rm -rf /opt/bpagent
systemctl daemon-reload
systemctl reset-failed
systemctl stop bpagent
systemctl disable bpagent
rm /etc/systemd/system/bpagent.service
rm -rf /opt/bpagent
systemctl daemon-reload
systemctl reset-failed

MacOS

Replace $USER with the username that was used to install the collector.

launchctl stop com.bluemedora.bpagent
launchctl remove com.bluemedora.bpagent
rm -rf /users/$USER/bpagent

Windows

stop-service "bpagent"
sc.exe delete "bpagent"
Remove-Item -path $env:BP_AGENT_HOME -Recurse
Start-Sleep -s 5
[System.Environment]::SetEnvironmentVariable('BP_AGENT_HOME', $null,[System.EnvironmentVariableTarget]::Machine)
[System.Environment]::SetEnvironmentVariable('BP_AGENT_HOME', $null,[System.EnvironmentVariableTarget]::User)