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.
DNClient Desktop
Section titled “DNClient Desktop”Homebrew
Section titled “Homebrew”brew uninstall --cask dnclientTo also delete its settings and enrollment state in /Library/Application Support/DefinedNet, along with its caches and preferences, use --zap:
brew uninstall --zap --cask dnclientDownload
Section titled “Download”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.
DNClient Server
Section titled “DNClient Server”If you installed any named instances, stop and uninstall each one first, passing its name:
sudo dnclient stop -name <name>sudo dnclient uninstall -name <name>Homebrew
Section titled “Homebrew”Stop and remove the service before uninstalling the cask:
sudo dnclient stopsudo dnclient uninstallbrew uninstall --cask dnclient-serverTo also delete its enrollment state in /etc/defined, use brew uninstall --zap --cask dnclient-server instead.
Standalone binary
Section titled “Standalone binary”sudo dnclient stopsudo dnclient uninstallrm $(which dnclient)# To remove config / log files:sudo rm /etc/defined/config.yml /etc/defined/dnclient.ymlsudo rm -r /etc/defined/sudo rm /usr/local/var/log/dnclient.*.logWindows
Section titled “Windows”Uninstalling DNClient on Windows removes its installation directory, which holds the configuration for every enrolled network.
DNClient Desktop
Section titled “DNClient Desktop”Use any of these:
- With winget, run
winget uninstall DefinedNet.DNClient.Desktop. - In “Add or remove programs”, find “DNClient Desktop” (named “Defined Networking Client” in older versions) and uninstall it.
- Open the
DNClient-Desktop.msiyou installed from, choose “Next”, then “Remove”. A newer MSI offers to upgrade instead.
DNClient Server
Section titled “DNClient Server”If you installed any named instances, stop and uninstall each one first, passing its name, in a PowerShell terminal started as Administrator:
& 'C:\Program Files\Defined Networking\DNClient\dnclient.exe' stop -name <name>& 'C:\Program Files\Defined Networking\DNClient\dnclient.exe' uninstall -name <name>Use any of these:
- With winget, run
winget uninstall DefinedNet.DNClient.Server. - In “Add or remove programs”, find “DNClient Server” (named “Defined Networking Client” in older versions) and uninstall it.
- Open the
DNClient-Server.msiyou installed from, choose “Next”, then “Remove”. A newer MSI offers to upgrade instead.
Package installations
Section titled “Package installations”Remove dnclient with your package manager. On APT and RPM, removing the package stops the service.
If you enabled any named instances, disable each one first so its systemd symlinks don’t outlive the package:
sudo systemctl disable --now dnclient@<name># Remove the package, keeping enrollment state in /var/lib/definedsudo apt-get remove dnclient# Or purge, which also deletes /var/lib/defined and /etc/default/dnclientsudo apt-get purge dnclientAny environment file you created for a named instance belongs to you rather than the package, so even a purge leaves it behind:
sudo rm -f /etc/default/dnclient.<name>To stop receiving updates, also remove the repository definition:
sudo rm /etc/apt/sources.list.d/defined-net.list /etc/apt/keyrings/defined-net.ascsudo dnf remove dnclient# Removal leaves enrollment state behind; delete it if you're done with the hostsudo rm -r /var/lib/definedIf you edited /etc/sysconfig/dnclient, rpm preserves your copy as /etc/sysconfig/dnclient.rpmsave. Any environment file you created for a named instance isn’t owned by the package and is left in place:
sudo rm -f /etc/sysconfig/dnclient.rpmsave /etc/sysconfig/dnclient.<name>To stop receiving updates, also remove the repository definition:
sudo rm /etc/yum.repos.d/defined-net.repo# pacman doesn't stop services on removal, so disable it firstsudo systemctl disable --now dnclient# -n deletes /etc/conf.d/dnclient rather than keeping it as a .pacsave filesudo pacman -Rns dnclient# Removal leaves enrollment state behind; delete it if you're done with the hostsudo rm -r /var/lib/definedAny environment file you created for a named instance isn’t tracked by pacman:
sudo rm -f /etc/conf.d/dnclient.<name>Standalone binary installations
Section titled “Standalone binary installations”sudo dnclient stopsudo dnclient uninstallrm $(which dnclient)# To remove state files:sudo rm -r /var/lib/defined/# service managers like systemd will auto-delete logsDocker
Section titled “Docker”Remove the container. To also delete the host’s enrollment state, remove the defined volume, and to free the disk space, remove the image:
docker rm -f dnclientdocker volume rm defineddocker image rm definednet/dnclientiOS and Android
Section titled “iOS and Android”Delete Mobile Nebula like any other app. Apple’s Delete apps on your iPhone or iPad and Google’s Delete, disable & manage unused apps on Android cover the steps. Deleting the app doesn’t remove the device from your network, so also delete its host in the admin panel.