Uninstall
Remove the Linknesis Core stack, its data, and the host-side updater from a server.
What the uninstaller removes
Running the uninstall script deletes the Core deployment completely:
- All Core containers:
linknesis-core,linknesis-core-watchdog,linknesis-nginx,linknesis-db,linknesis-webhook-sender, andlinknesis-certbot. - The
linknesisDocker network. - The
linknesis-updatersystemd service and timer. - The Linknesis Core Docker image.
- The entire installation directory, by default
/opt/linknesis, which contains:- MongoDB data (
mongo_data) - TLS certificates and Certbot state (
certs,certbot) - Frontend assets, logs, backups, and the
.envfile - The updater binary and systemd unit files
- MongoDB data (
By default, the base Docker images for MongoDB, Nginx, and Certbot are kept so you do not have to re-download them later. Use the --remove-base-images option to delete those as well.
Before you uninstall
- Back up any data you want to keep. The uninstall script removes the MongoDB database and all configuration permanently.
- Consider stopping Probes first, or be prepared to reinstall them against a new Core later.
- The script must be run as root.
Run the uninstaller
Download and run the uninstall script:
curl -fsSL https://linknesis.com/uninstall_core.sh | sudo bash
The script asks for confirmation before deleting anything. To run it non-interactively (for example, in automation):
curl -fsSL https://linknesis.com/uninstall_core.sh | sudo bash -s -- --yes
To also remove the MongoDB, Nginx, and Certbot base images:
curl -fsSL https://linknesis.com/uninstall_core.sh | sudo bash -s -- --yes --remove-base-images
Options
--install-dir DIR- use a different installation directory (default:/opt/linknesis).--remove-base-images- also remove themongo:8,nginx:alpine, andcertbot/certbotimages.--yes, -y- skip the confirmation prompt.-h, --help- show usage information.
Manual cleanup
If you prefer to remove the stack manually, run the equivalent commands:
cd /opt/linknesis
docker compose down --volumes --remove-orphans
systemctl stop linknesis-updater.timer
systemctl disable linknesis-updater.timer
systemctl stop linknesis-updater.service
systemctl disable linknesis-updater.service
rm -f /etc/systemd/system/linknesis-updater.*
systemctl daemon-reload
docker network rm linknesis
rm -rf /opt/linknesis