Skip to content

Uninstalling groundSwXtch

Last validated:
View as Markdown

WHAT TO EXPECT

In this article, users will learn how to remove groundSwXtch from a host with the installer script, either keeping its configuration and license for a later reinstall or removing everything.

Run these commands on the groundSwXtch host, in the folder that has install-groundswxtch.sh. If the script isn't there, download it as shown in Installing groundSwXtch.

Remove the Containers Only

This removes the groundSwXtch and swx-tools containers. The configuration, the license, the loaded images and the hugepages stay on the host, so a later install is fast and the groundSwXtch comes back with the same settings and license.

sudo ./install-groundswxtch.sh teardown

To install it again:

sudo ./install-groundswxtch.sh install --image-tag groundswxtch:<version>

Remove Everything

IMPORTANT

This deletes /var/lib/groundswxtch, which holds the configuration and the license file (license.key). If groundSwXtch will be installed on this host again, copy license.key to a safe place first.

sudo ./install-groundswxtch.sh teardown --full --release-hugepages

This removes:

  • the groundSwXtch and swx-tools containers;
  • the groundSwXtch and swx-tools images;
  • the state directory /var/lib/groundswxtch;
  • the hugepages the installer reserved. Without --release-hugepages, they stay reserved.

These stay on the host:

  • Docker. If the installer installed it and nothing else uses it, remove it with the OS package manager.
  • /etc/sysctl.d/99-groundswxtch.conf, the kernel settings the installer added. Delete it if it's no longer needed.