Skip to content

Uninstall TestGen

This document provides the steps to uninstall an instance of DataOps Data Quality TestGen. The uninstall process deletes all TestGen resources and data.

  • Docker mode — removes the containers, volumes, and images related to TestGen.
  • Pip mode — removes the Python environment, dependencies, and data directories related to TestGen.
  • Kubernetes mode — removes the Helm release and the namespace. The application database is on a separate server, so it is dropped separately.

Tip

To upgrade an instance of TestGen without losing any data, see Upgrade TestGen.

Using dk-installer.exe on Windows

The instance must have been installed using dk-installer.exe, as outlined in Install on Windows.

  1. Download the latest version of dk-installer.exe.
  2. Run the uninstall option.
    1. From your Downloads folder, double-click the dk-installer.exe file to start the program.
    2. If a Windows protected your PC screen is displayed, click the More info link, and then click Run anyway.
    3. In the Choose a Product menu, type 1 for TestGen and press Enter.
    4. In the TestGen Menu, type 8 for Uninstall TestGen and press Enter.

Using dk-installer on Mac/Linux

The instance must have been installed using dk-installer, as outlined in Install on Mac/Linux or Install Enterprise.

  1. Navigate to the directory used for the TestGen installation. This folder should contain the dk-tg-install.json marker file and the docker-compose.yml file for Docker installs.

  2. Download the latest version of dk-installer.

    curl -o dk-installer.py 'https://raw.githubusercontent.com/DataKitchen/data-observability-installer/main/dk-installer.py'
    

  3. Run the delete command.

    python3 dk-installer.py tg delete
    

Using Helm on Kubernetes Enterprise

The instance must have been installed with Helm, as outlined in Install on Kubernetes.

  1. Remove the Helm release.

    helm uninstall dk-tg-app -n datakitchen
    
  2. Delete the namespace, which removes the secrets created for the installation.

    kubectl delete namespace datakitchen
    
  3. On the PostgreSQL server, drop the database and the roles the installation used. Connect with the administrative account used to prepare the database.

    DROP DATABASE IF EXISTS datakitchen;
    DROP USER IF EXISTS testgen_execute;
    DROP USER IF EXISTS testgen_report;
    DROP ROLE IF EXISTS testgen_execute_role;
    DROP ROLE IF EXISTS testgen_report_role;
    DROP ROLE IF EXISTS testgen;