Appearance
Uninstall
A server installed with an install command
Use theseus-node uninstall. It also tells the control plane, so the server shows as uninstalled there and can be installed again later with a new install command.
bash
sudo theseus-node uninstall # asks you to type "uninstall"
sudo theseus-node uninstall --keep-data # keep the stack directory and Docker volumes
sudo theseus-node uninstall --yes # no question (automation)It:
- stops and disables
theseus-node; - takes the stack down: without
--keep-datait deletes the containers and the data volumes (./theseus uninstall); with--keep-datait only stops them (./theseus down); - logs Docker out of the Theseus registry;
- without
--keep-data, removes the stack directory (/opt/theseus); - tells the control plane;
- removes theseus-node itself: its service, binary,
/etc/theseus-nodeand/var/lib/theseus-node.
If the stack cannot be taken down, nothing is removed and theseus-node is started again.
Not removed: Docker itself, the vm.max_map_count setting in /etc/sysctl.d/99-theseus.conf, and any /opt/theseus.prev-* directories from earlier re-installs.
With --keep-data, a later install picks up the same data.
We can also uninstall a server from the control plane, with or without keeping data. Ask us.
A stack without theseus-node
bash
cd /opt/theseus && sudo ./theseus uninstallIt asks you to type DELETE, then removes the containers and all data volumes (alerts, users, agent registrations). theseus.env and runtime/ are kept; delete the directory yourself if you no longer need them.
Two servers
Uninstall the application server first, then the core.
Endpoints
Removing the server does not remove agents from endpoints. Remove them first from the Agents page with Uninstall from the host first, or on each machine; see Disable, enable, remove.