To delete an aks cluster, you just need to use its name and resource group in the command below.
az aks delete --name aks-demo-cluster --resource-group rg-aks-demo
The behavior of this command has been altered by the following extension: aks-preview
Are you sure you want to perform this operation? (y/n): y
The command below verifies that the resource does not exist anymore.
az aks show \
--resource-group rg-aks-demo \
--name aks-demo-cluster \
--query provisioningState \
--output tsv
The behavior of this command has been altered by the following extension: aks-preview
(ResourceNotFound) The Resource 'Microsoft.ContainerService/managedClusters/aks-demo-cluster' under resource group 'rg-aks-demo' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
Code: ResourceNotFound
Message: The Resource 'Microsoft.ContainerService/managedClusters/aks-demo-cluster' under resource group 'rg-aks-demo' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix