Edit

Share via


Remove Azure Container Storage

This article shows you how to remove Azure Container Storage by deleting the extension instance for Azure Kubernetes Service (AKS). Optionally, you can also delete the AKS cluster or entire resource group to clean up resources.

Important

This article applies to Azure Container Storage (version 2.x.x). If you have Azure Container Storage (version 1.x.x) installed on your AKS cluster, remove it by following these steps.

Delete extension instance

Follow these steps to remove Azure Container Storage from your AKS cluster.

  1. Delete all Persistent Volume Claims (PVCs) and Persistent Volumes (PVs) before uninstalling the extension. Removing Azure Container Storage without cleaning up these resources could disrupt your running workloads. To avoid disruptions, ensure that there are no existing workloads or storage classes relying on Azure Container Storage.

  2. Delete the extension by running the following Azure CLI command. Be sure to replace <cluster-name> and <resource-group> with your own values.

    az aks update -n <cluster-name> -g <resource-group> --disable-azure-container-storage
    

Delete AKS cluster

To delete an AKS cluster and all persistent volumes, run the following Azure CLI command. Replace <resource-group> and <cluster-name> with your own values.

az aks delete --resource-group <resource-group> --name <cluster-name>

Delete resource group

You can also use the az group delete command to delete the resource group and all resources it contains. Replace <resource-group> with your resource group name.

az group delete --name <resource-group>

See also