Skip to content

Uninstalling DNClient

Uninstall DNClient the same way you installed it. Find your platform and the method you used below. To also remove the host from your network, delete it in the admin panel.

Terminal window
brew uninstall --cask dnclient

To also delete its settings and enrollment state in /Library/Application Support/DefinedNet, along with its caches and preferences, use --zap:

Terminal window
brew uninstall --zap --cask dnclient

Delete DNClient Desktop from the Applications folder. Its background process keeps running until you restart the computer, or until you turn it off under “Login Items & Extensions” in System Settings.

If you installed any named instances, stop and uninstall each one first, passing its name:

Terminal window
sudo dnclient stop -name <name>
sudo dnclient uninstall -name <name>

Stop and remove the service before uninstalling the cask:

Terminal window
sudo dnclient stop
sudo dnclient uninstall
brew uninstall --cask dnclient-server

To also delete its enrollment state in /etc/defined, use brew uninstall --zap --cask dnclient-server instead.

Terminal window
sudo dnclient stop
sudo dnclient uninstall
rm $(which dnclient)
# To remove config / log files:
sudo rm /etc/defined/config.yml /etc/defined/dnclient.yml
sudo rm -r /etc/defined/
sudo rm /usr/local/var/log/dnclient.*.log