Removing the agent

If you've decided to stop using Server Density, you'll need to follow the steps below to uninstall and remove the agent.

CentOS / Fedora / Red Hat / CloudLinux

sudo yum remove sd-agent

Your config will be saved in /etc/sd-agent/ and any logs at /var/log/sd-agent/ so you may need to remove these manually.

Debian / Ubuntu

apt-get remove --purge sd-agent

The --purge flag will force the removal of the init scripts and config file. Remove this flag to keep those files.

Manual (source) installations

The agent installs no extra files into your system so you can delete it by stopping the agent process and then removing the directory the agent files are within. If you used our source install script the agent will typically be located at /root/.sd-agent.

kill $(ps aux | grep '[s]d-agent' | awk '{print $2}')
rm -rf /root/.sd-agent

macOS

Unload the plist, kill the agent pid and remove the files

launchctl unload /Library/LaunchDaemons/com.serverdensity.agent.plist
kill $(ps aux | grep '[s]d-agent' | awk '{print $2}')
rm -rf /usr/local/etc/sd-agent/ /Library/LaunchDaemons/com.serverdensity.agent.plist  /usr/local/sd-agent/ /private/var/log/sd-agent

Windows

There is an entry in Add/Remove Programs from the Windows Control Panel which will uninstall the agent. Ensure you are logged in as the same user that installed the Server Density agent otherwise it will not appear.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Monday  —  Friday.

10am  —  6pm UK.

Dedicated Support.