Commands/Remove
v6.21.65
Commands

Remove

Completely uninstall NexoralDNS and all associated data.

This is irreversible
Permanently deletes all DNS records, configurations, query logs, cache data and user settings. Back up first.

Command

remove
$ nexoraldns remove

What it does

Prompts for confirmation (type 'yes' exactly)
Stops and removes all containers, images and volumes
Deletes networks and the installation directory
Restores original DNS configuration and cleans up config files
Purges the nexoraldns CLI package and executable command shortcuts

What is NOT removed

Docker and Docker Compose (remain installed)
System packages installed as dependencies
Router settings (update these manually)
External backups outside the install directory

Pre-removal backup

backup volume
sudo docker run --rm -v nexoraldns_db-data:/data -v ~/nexoraldns-backup:/backup \
  alpine tar czf /backup/db-backup-$(date +%Y%m%d).tar.gz -C /data .

Reinstalling

reinstall
$ curl -fsSL https://raw.githubusercontent.com/nexoral/NexoralDNS/main/Scripts/install.sh | sudo bash -