Uninstall
Synpse agent uninstall instructions
To check whether you have Synpse agent installed, run systemctl status synpse-agent. This command should return info about your running agent:
1
[email protected]:/# systemctl status synpse-agent
2
● synpse-agent.service - Synpse agent
3
Loaded: loaded (/etc/systemd/system/synpse-agent.service; enabled; vendor preset: enabled)
4
Active: active (running) since Fri 2021-12-17 00:18:25 GMT; 3 weeks 1 days ago
5
Docs: https://synpse.net/docs/
6
Main PID: 4002295 (synpse-agent)
Copied!
If it's not there, nothing to do. Otherwise, follow the steps to remove it.

Removing synpse-agent systemd service

When you no longer wish to have Synpse agent installed on your device, here are the steps to remove it. First, get root permissions as agent is installed as root:
1
sudo -i
Copied!
Disable and remove the system service:
1
systemctl stop synpse-agent
2
systemctl disable synpse-agent
3
systemctl daemon-reload
Copied!

Removing state directories

To remove directories and files that the agent has created, run:
1
rm -rf /etc/synpse
2
rm -rf /var/lib/synpse
3
rm -rf /var/log/app_*
4
rm -rf /var/log/synpse*
Copied!

Remove any containers created by Synpse

You might have provisioned some applications or jobs. You can check whether you are running any containers by:
1
docker ps
Copied!
If you see any containers with names like:
1
nms_1rJPCkYhFXumvh2K8BFdv8nkdwG-app_239hhe6dBcinvKLbuCS5QzChbdy-6-xxxx
Copied!
You can remove them by running:
1
docker rm -f <container name>
Copied!