Manually uninstall the Customer-hosted Codebeamer AI
Step 1: Disable plugin connectivity
From the URL {{CODEBEAMER_BASE_URL}}/sysadmin/aiAtlasConfiguration.spr, for example: https://localhost:8080/sysadmin/aiAtlasConfiguration.spr, disable the connectivity to the following.
PTC SaaS Platform analytics service—Clear the Allow detailed analytics checkbox and save the configuration
Azure AD Authentication—Clear the configuration details and save the configuration.
Step 2: Uninstall OTEL Collector
1. Check if OTEL is installed.
helm list -n cbai-otel.
2. Uninstall OTEL.
helm uninstall otel-collector -n cbai-otel.
3. Verify the uninstallation.
kubectl get pods -n cbai-otel.
4. Optionally, delete the namespace if it is not required.
kubectl delete namespace cbai-otel
* 
OTEL collector is deployed in a separate namespace, cbai-otel.
This must be removed before uninstallation since cb-ai-service depends on it for telemetry.
If it is not removed:
Logs may show OTEL export errors like StatusCode.UNAVAILABLE.
Cleanup may be incomplete or delayed.
Step 3: Uninstall Codebeamer AI service from AKS
1. Get a list of Helm releases.
helm list -n cb-ai-service.
2. Uninstall the Codebeamer AI service.
helm uninstall cb-ai-service -n cb-ai-service
3. Verify that the pods are removed.
kubectl get pods -n cb-ai-service
Step 4: Remove Kubernetes namespace
To remove Kubernetes namespace from the portal, go to AKS Cluster > Kubernetes resources > Namespaces. Select Delete for the cb-ai-service.
To use the Azure CLI, refer to kubectl delete | Kubernetes.
Step 5: Remove AKS diagnostic settings
To remove AKS diagnostic settings from the portal, go to AKS Cluster > Monitoring > Diagnostic Settings. Select Delete for the <resource_group_name>-aks-diagnostics.
To use the Azure CLI, refer to az monitor diagnostic-settings | Microsoft Learn.
Step 6: Delete AKS Cluster
To delete AKS Cluster from the portal, go to Azure Portal > Kubernetes Services > Delete Cluster. Select <resource_group_name>-cluster.
To use the Azure CLI, refer to az aks | Microsoft Learn.
Step 7: Remove OpenAI diagnostic settings
To remove OpenAI diagnostic settings from the portal, go to <resource_group_name>-openai > Monitoring > Diagnostic settings. Find <resource_group_name>-openai-diagnostics and select Delete.
To use the Azure CLI, refer to az monitor diagnostic-settings.
Step 8: Delete Private Endpoint
To delete Private Endpoints from the portal, go to Private Endpoints > Delete. Select <resource_group_name>-openai-pe.
To use the Azure CLI, refer to az network private-endpoint | Microsoft Learn.
Step 9: Remove OpenAI Model Deployments
To remove OpenAI Model Deployments from the portal, go to Azure OpenAI > Model Deployments > Delete. Select gpt-4.1-mini-2025-04-14 and gpt-5-mini-2025-08-07.
To use the Azure CLI, refer to az cognitiveservices account | Microsoft Learn.
Step 10: Remove Content Filter
To remove Content Filter from the portal, open your Azure OpenAI resource, <resource_group_name>-openai. Click Open in Azure AI Foundry. Go to Guardrails + Controls > Content Filters. Search and delete <resource_group_name>-content-filter.
Step 11: Remove Role Assignment
You can remove Role Assignment from the portal using the following options.
Option 1: Remove from Azure OpenAI resource
From the Azure portal, go to <resource_group_name>-openai > Access control (IAM) > Role assignments. Search for the role Cognitive Services OpenAI User. Identify the assigned principal, select the role, and click Remove.
Option 2: Remove from Managed Identity
From the Azure portal, go to Managed Identities > <resource_group_name>-cluster-identity > Azure role assignments > Cognitive Services OpenAI User > Assignments . Click Remove.
To use the Azure CLI, refer to az role assignment | Microsoft Learn.
Step 12: Delete Azure OpenAI account
To delete Azure OpenAI account from the portal, go to .Cognitive Services. Delete the <resource_group_name>-openai
To use the Azure CLI, refer to az cognitiveservices account | Microsoft Learn.
* 
After deleting the Azure OpenAI resource, the resource is soft deleted for ~48 hours. During this period, recreating a resource with the same name will fail
If you need to reuse the same resource name, either wait for the 48 hours retention period to expire or purge the soft-deleted resource manually.
Step 13: Remove Managed Identity
To remove Managed Identity from the portal, go to Managed Identities > Delete. Delete <resource_group_name>-cluster-identity.
To use the Azure CLI, refer to az identity | Microsoft Learn.
Step 14: Remove Private DNS Zone
* 
Private DNS Zone cannot be deleted while VNet links exist.
Remove all VNet links and then delete the zone.
This applies to portal and CLI workflows.
To remove Private DNS Zone from the portal, perform the following steps.
1. Delete VNet link, <resource_group_name>-vnet-link from the portal.
2. To delete Private DNS Zone, privatelink.openai.azure.com, go to Private DNS Zones > Delete.
To use the Azure CLI, refer to az network private-dns | Microsoft Learn.
Step 15: Remove Virtual Network
To remove Virtual Network from the portal, go to Virtual Networks > Delete. Delete <resource_group_name>-vnet.
To use the Azure CLI, refer to az network vnet | Microsoft Learn.
Step 16: Remove Log Analytics Workspace
To remove Log Analytics Workspace from the portal, go to Log Analytics Workspaces > Delete. Delete <resource_group_name>-law.
(Optional) Step 17: Remove App Registration
To remove App Registration from the portal, go to Microsoft Entra ID > App Registrations. Search and delete <resource_group_name>-oauth.
To use the Azure CLI, refer toaz ad | Microsoft Learn.
Step 18: Remove Network Security Group
* 
Before deleting, make sure that Network Security Group is not associated with any subnet or NIC. If associated, first detach it from AKS subnet, aks-subnet, and any linked network interfaces.
To delete Resource Group from the portal, go to Network Security Groups. Search and delete <resource_group_name>-aks-nsg.
To use the Azure CLI, refer toaz network nsg | Microsoft Learn.
Step 19: Delete Resource Group
To delete Resource Group from the portal, go to Resource Groups > Delete. Delete <resource_group_name>.
To use the Azure CLI, refer toaz group | Microsoft Learn.
Step 20: Verify that no resources remain
Run the following and confirm that it returns no resources.
az resource list \
--resource-group <resource_group_name>
To use the Azure CLI, refer toaz resource | Microsoft Learn.
Was this helpful?