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.
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:
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.yamlBack up settings
Export the
Settingscustom resource in theaif-operatornamespace:> kubectl get settings settings -n aif-operator -o yaml > aif-settings-backup.yamlBack up secrets
Export all secrets (including registry credentials, Git access tokens, and CA certificates) configured in the
aif-operatornamespace:> kubectl get secrets -n aif-operator -o yaml > aif-secrets-backup.yamlBack up UI extension configuration
Export the
aif-ui-configConfigMap from thecattle-ui-plugin-systemnamespace:> kubectl get configmap aif-ui-config -n cattle-ui-plugin-system -o yaml > aif-ui-config-backup.yamlBack 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 #
Uninstall SUSE AI Factory Operator
Uninstall the SUSE AI Factory extension and the operator.
> helm uninstall aif-operator -n aif-operatorVerify 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
Remove installation leftovers
Remove the related settings resource.
> kubectl delete settings settings -n aif-operatorRemove the configuration of the UI extension.
> kubectl delete configmap aif-ui-config -n cattle-ui-plugin-system
To perform a complete removal of all resources, remove CRDs.
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 #
Uninstall the SUSE AI Factory extension and the operator.
From the main left panel, select the cluster you want to uninstall from, then › .
From the list of installed applications, activate the checkbox of
aif-operatorand click above the list.Figure 5.1: Uninstalling SUSE AI Factory Operator #Confirm the deletion and wait until it is finished.
Remove installation leftovers
From the same cluster menu, select › › .
Activate the checkbox of
aif-operatorand click above the list.Figure 5.2: Uninstalling SUSE AI Factory Operator leftovers #Confirm the deletion.
From the same cluster menu, select › .
Activate the checkbox of
aif-ui-configin thecattle-ui-plugin-systemnamespace and click above the list.Confirm the deletion.
To perform a complete removal of all resources, remove CRDs.
From the same cluster menu, select › › .
Filter the list by entering
ai-factory.suse.comin the search box.Activate the checkbox of all
ai-factory.suse.comresources and click above the list.Figure 5.3: Uninstalling SUSE AI Factory Operator CRDs #Confirm the deletion.


