|Index|Troubleshooting SUSE AI Factory|How do I uninstall SUSE AI Factory including CRDs?
Applies to SUSE AI Factory

5 How do I uninstall SUSE AI Factory including CRDs?

To uninstall SUSE AI Factory, you need to perform the following tasks:

  • Optionally, back up configuration, secrets and custom resources.

  • Uninstall SUSE AI Factory Operator.

  • Remove installation leftovers.

  • Optionally, remove Custom Resource Definitions (CRDs).

You can uninstall SUSE AI Factory either using Rancher Prime or the command line.

Note
Note: What uninstalling removes

Uninstalling the operator chart removes the bundled blueprints, the SUSE partner blueprint catalog, and the UI extension. The CRDs, the Settings resource, and the aif-ui-config ConfigMap of the UI extension are deliberately retained so that a reinstallation preserves your configuration and existing workload resources.

Remove them explicitly with the steps below if you want a complete removal.

5.1 Back up SUSE AI Factory resources and configuration (optional)

Before uninstalling SUSE AI Factory, back up your configuration, secrets and custom resources to preserve them for future use or reinstallation:

  1. Back up Helm chart values

    Export the values used to deploy SUSE AI Factory Operator:

    > helm get values aif-operator -n aif-operator -a > aif-operator-values-backup.yaml
  2. Back up settings

    Export the Settings custom resource in the aif-operator namespace:

    > kubectl get settings settings -n aif-operator -o yaml > aif-settings-backup.yaml
  3. Back up secrets

    Export all secrets (including registry credentials, Git access tokens, and CA certificates) configured in the aif-operator namespace:

    > kubectl get secrets -n aif-operator -o yaml > aif-secrets-backup.yaml
  4. Back up UI extension configuration

    Export the aif-ui-config ConfigMap from the cattle-ui-plugin-system namespace:

    > kubectl get configmap aif-ui-config -n cattle-ui-plugin-system -o yaml > aif-ui-config-backup.yaml
  5. Back up SUSE AI Factory custom resources

    Export all existing blueprints, blueprint catalogs, AI workloads, and extension install resources:

    > kubectl get blueprints,blueprintcatalogs,aiworkloads,installaiextensions -A -o yaml > aif-cr-backup.yaml

5.2 Uninstall using Helm

  1. Uninstall SUSE AI Factory Operator

    1. Uninstall the SUSE AI Factory extension and the operator.

      > helm uninstall aif-operator -n aif-operator
    2. Verify that the resources have been removed by running the following commands.

      > kubectl get all -n aif-operator
      > kubectl get aifext
      > helm list -n aif-operator
  2. Remove installation leftovers

    1. Remove the related settings resource.

      > kubectl delete settings settings -n aif-operator
    2. Remove the configuration of the UI extension.

      > kubectl delete configmap aif-ui-config -n cattle-ui-plugin-system
  3. To perform a complete removal of all resources, remove CRDs.

    1. Delete SUSE AI Factory CRDs.

      > kubectl delete crd \
        aiworkloads.ai-factory.suse.com \
        blueprintcatalogs.ai-factory.suse.com \
        blueprints.ai-factory.suse.com \
        installaiextensions.ai-factory.suse.com \
        settings.ai-factory.suse.com

5.3 Uninstall using Rancher Prime

  1. Uninstall the SUSE AI Factory extension and the operator.

    1. From the main left panel, select the cluster you want to uninstall from, then Apps › Installed Apps.

    2. From the list of installed applications, activate the checkbox of aif-operator and click Delete above the list.

      Screenshot showing how to uninstall SUSE AI Factory Operator
      Figure 5.1: Uninstalling SUSE AI Factory Operator
    3. Confirm the deletion and wait until it is finished.

  2. Remove installation leftovers

    1. From the same cluster menu, select More Resources › ai-factory.suse.com › Settingses.

    2. Activate the checkbox of aif-operator and click Delete above the list.

      Screenshot showing how to uninstall SUSE AI Factory Operator leftovers
      Figure 5.2: Uninstalling SUSE AI Factory Operator leftovers
    3. Confirm the deletion.

    4. From the same cluster menu, select Storage › ConfigMaps.

    5. Activate the checkbox of aif-ui-config in the cattle-ui-plugin-system namespace and click Delete above the list.

    6. Confirm the deletion.

  3. To perform a complete removal of all resources, remove CRDs.

    1. From the same cluster menu, select More Resources › API › CustomResourceDefinitions.

    2. Filter the list by entering ai-factory.suse.com in the search box.

    3. Activate the checkbox of all ai-factory.suse.com resources and click Delete above the list.

      Screenshot showing how to uninstall SUSE AI Factory Operator CRDs
      Figure 5.3: Uninstalling SUSE AI Factory Operator CRDs
    4. Confirm the deletion.