Skip to main content

Uninstall the server

despliegue/nodo/desinstalar.sh removes the node and everything the installer and the sensor left on the machine: the containers (console, sensor, updater, database, decoys, probes), their networks and volumes, the node's images and the database and web server images it pulled, the decoy disks, the firewall rules it added (chains SD-CONSOLA and SD-TRAMPAS, and the strict host firewall's inet sugardaddy table if you turned it on), the AppArmor profile sugardaddy-trampa, the systemd units and cron entry for the decoy disks and the nightly backups, the outbound proxy settings, and the folders /opt/sugardaddy, /var/lib/sugardaddy and /usr/local/lib/sugardaddy. It does not uninstall Docker, and it touches nothing that is not Sugardaddy's. If you built the images from source, the base images the build pulled stay; sudo docker image prune -a removes them.

sudo despliegue/nodo/desinstalar.sh --dry-run # list what would go, change nothing
sudo despliegue/nodo/desinstalar.sh # remove it; asks you to type the folder

Options: a different node folder as the first argument, --yes for unattended runs and --keep-backups to leave /opt/sugardaddy/copias in place. Make a backup first if you may want the data back (see Updates).