Uninstall Agent
How to completely remove the HelmRelay agent from your server.
Note:After uninstalling, the server will show as "Disconnected" in your dashboard. You can remove it from the dashboard at Servers → Server Settings → Delete Server.
Uninstall steps
Follow these steps to completely remove the agent:
Step 1 — Stop and disable the service
sudo systemctl stop helmrelay-agent
sudo systemctl disable helmrelay-agentStep 2 — Remove the systemd service file
sudo rm /etc/systemd/system/helmrelay-agent.service
sudo systemctl daemon-reloadStep 3 — Delete the agent binary
sudo rm /usr/local/bin/helmrelay-agentStep 4 — Remove configuration and data files
sudo rm -rf /etc/helmrelay/
sudo rm -rf /var/lib/helmrelay/
sudo rm -rf /var/log/helmrelay/Step 5 — Clean up journal logs (optional)
sudo journalctl --rotate
sudo journalctl --vacuum-time=1s -u helmrelay-agentVerify removal
Confirm the agent is completely removed:
# Should return "not found"
which helmrelay-agent
# Should return "could not be found"
systemctl status helmrelay-agent
# Should return nothing
ls /etc/helmrelay/ 2>/dev/null && echo "Config still exists" || echo "Clean"Remove server from dashboard
After uninstalling the agent, the server will appear as "Disconnected" in your dashboard. To remove it completely:
- Go to Dashboard → Servers
- Click on the disconnected server
- Go to Server Settings
- Click Delete Server
- Confirm deletion
This permanently removes the server and all associated data (metrics, logs, sessions) from HelmRelay.
Reinstalling
Want to reconnect this server? You can reinstall the agent at any time:
Install command
$ curl -sSL https://cdn.helmrelay.com/install.sh | sudo bash -s -- --token YOUR_TOKEN --server-id YOUR_SERVER_IDYou'll need a new connection token from the dashboard.