Pass --uninstall to the same installer script to remove the Hyperping agent: the service is stopped and deregistered and the binaries are removed, while configuration and state stay on disk so you can reinstall without losing the agent token. Removing the server from the dashboard or rotating its credential are separate actions.
Run on the host:
curl -fsSL https://hyperping.com/install.sh | sh -s -- --uninstallhp-agent.service on Linux, unloads com.hyperping.agent on macOS./etc/systemd/system/hp-agent.service or /Library/LaunchDaemons/com.hyperping.agent.plist./usr/local/bin/ and /usr/local/libexec/.To purge all Hyperping files:
sudo rm -rf /etc/hyperping /var/lib/hyperping /var/log/hyperpingThe hyperping system user on Linux is harmless, but you can remove it with sudo userdel hyperping if your compliance policy requires it.
If you only need to rotate the host's agent token, for example after suspected compromise of /etc/hyperping/agent.env, use Revoke agent from the server menu instead. The server row stays, the running binary starts 401-ing, and re-running the installer with a new install token brings the host back with a fresh credential and the same UUID (so metric history is preserved). See Re-enrollment.
Add the server again (or regenerate the install token) from the Servers view.
Paste the new install command on the host. The new token replaces any cached credential.
Refresh the Servers view. The server moves back to Online within about 30 seconds.