Skip to content

Uninstall

This page explains how to remove a QubeSight installation with uninstall.sh: what it removes, what it keeps, its options, and what you must clean up yourself.

Community Enterprise

Data loss

Without --keep-data, uninstalling deletes all data of the installation: the configuration database, backups stored on this server, the activity logs in ClickHouse, the Kafka buffer and the local locked archive. This cannot be undone. Make sure you have a backup at a backup location on another server, and its backup passphrase, before you continue.

Prerequisites

  • uninstall.sh always works on the installation in its own directory (the QubeSight release directory containing docker-compose.yml), wherever you start it from. Run it as root or a user who can use Docker; the docker command must be available.
  • Files written by containers as root are deleted with a short-lived alpine:3.20 helper container when a direct delete is not permitted. Running as root avoids this.
  • The script uses the project name in .env (COMPOSE_PROJECT_NAME, default qubesight) and only touches resources of that project; other Compose projects on the same machine are not affected. If .env is missing, it warns and uses qubesight.

Run it

cd /opt/qubesight
sudo ./uninstall.sh

The script lists what it will remove, including the installation data in a separate data directory, and asks you to type the project name to confirm. Anything else cancels without deleting anything. An unknown option stops the script before anything is removed (exit code 2).

The removal runs in this order: containers, networks and (without --keep-data) volumes of the project, including those of the optional profiles; the virtual IP container; the outbound source IP service; the data directories, in the release directory and in the separate data directory if one was chosen; the data-disk boot-order settings; the generated configuration; and, with --images, the QubeSight images.

Options

Option Effect
--yes, -y Do not ask for confirmation (automation). Without a terminal, --yes is required.
--keep-data Keep the data: only containers and networks are removed; named volumes and data directories stay
--keep-config Keep .env and secrets/ (to reinstall with the same passwords and keys) and the virtual IP password file
--images Also remove the QubeSight images (qubesight/control-plane, worker, ui, gateway, updater); third-party images stay
-h, --help Print the help (in Turkish)

Examples:

sudo ./uninstall.sh --keep-data --keep-config   # remove containers only; reinstall later with ./install.sh
sudo ./uninstall.sh --yes --images              # full removal including QubeSight images

What it removes and what it keeps

Item Default --keep-data --keep-config
All containers of the project, including side-by-side copies created by patches removed removed removed
Project networks removed removed removed
Named volumes: PostgreSQL data, backups, control-plane secrets, web certificate store, update-service state, restore MySQL, models removed kept removed
Data directories in the release directory: clickhouse_data, clickhouse_cold, redpanda_data, minio_data, archive_drop, .vector removed kept removed
With a separate data directory (QUBESIGHT_DATA_DIR, see Data disk): its clickhouse_data, redpanda_data, minio_data, archive_drop and clickhouse_cold sub-directories and the volume paths written by the installer (QUBESIGHT_VOL_*: Vector buffer, PostgreSQL, backups, models, restore MySQL and its scratch directory). The data directory itself is removed only if it is then empty. removed kept removed
Boot-order settings for the data disk (/etc/systemd/system/<unit>.d/50-qubesight-data.conf) removed removed kept
.qs-bundle-images (record of the offline bundle images already loaded) removed removed kept
.env removed removed kept
Generated files in secrets/ removed removed kept
docker-compose.override.yml written by install.sh for Podman CNI removed removed kept
Virtual IP container qs-keepalived removed removed removed
Virtual IP password file /srv/qs-keepalived removed removed kept
Outbound source IP service qubesight-egress (cluster) and its rules removed removed removed
QubeSight images kept kept kept (removed with --images)
Third-party images kept kept kept
The release directory (source tree) kept kept kept

With local cold storage, the warning before the confirmation states that minio_data holds the locked archive: Object Lock prevents deletion through MinIO, not deletion of the directory on disk.

Before it asks for confirmation, the script lists what it will remove for the installation: all containers and networks; all data (PostgreSQL settings, backups, ClickHouse and Redpanda data, the local MinIO store, the archive drop directory and the Vector buffer); the installation data inside a separate data directory, path by path; the locked MinIO archive, which cannot be recovered; and .env, the generated files in secrets/ and the docker-compose.override.yml written by install.sh. It then asks you to type the project name (qubesight) to continue. The prompts are in Turkish in this release.

What it does not remove

Remove these yourself if needed:

  • A cold-storage directory outside the release directory and outside the data directory (CLICKHOUSE_COLD_DIR pointing to another disk). The script names it and leaves it.
  • Other files on the data disk: only the sub-directories listed above are deleted.
  • Images loaded from the offline bundle. --images removes the QubeSight images; the third-party images stay.
  • Data on other servers: an external S3 or MinIO cold store, a vault server installed by the installer, an SFTP backup location. Locked objects cannot be deleted before their lock expires.
  • Other cluster nodes and the witness. Remove a node from the cluster in the product first (Platform → System and Cluster → Cluster → Remove from cluster); its software and data stay on that server.
  • Host changes made for Podman CNI hosts: the qubesight-cni-hairpin service and script, /etc/sysctl.d/90-qubesight-podman-cni.conf, and the netavark setting in /etc/containers/containers.conf.d/50-qubesight-netavark.conf.
  • The product's SSH key line in the authorized_keys of the cluster SSH account.
  • install.log in the release directory.

Reinstall

After an uninstall, install again with ./setup.sh (web installer) or ./install.sh. With --keep-config and --keep-data, a re-run of ./install.sh brings the same installation back with the same data and passwords.