Delete a Microsoft Azure Red Hat OpenShift cluster
In this resource, you’ll learn how to delete your Microsoft Azure Red Hat® OpenShift® cluster. It’s generally a good idea to delete your cluster once you’re done using it for demo purposes, as it can incur extra usage charges.
What will you learn?
- Deleting clusters
- Deleting the resource groups
What will you need before starting?
- Met all prerequisites
- Deployed a cluster
Delete the cluster
- Sign into the Azure CLI by running
az login
and following the steps to authorize your account. - Run the following command to delete your cluster. This command will take 30 minutes to complete, and you will not be able to move forward until it has ended.
az aro delete -y \ --resource-group $AZR_RESOURCE_GROUP \ --name $AZR_CLUSTER
- Run the following command to delete your resource group. Only do this if there is nothing else in the resource group
az group delete -y \ --name $AZR_RESOURCE_GROUP
Congratulations, you have successfully deleted your Azure Red Hat OpenShift cluster and any associated resource groups. This is the cleanest method to ensure nothing is remaining after your cluster deployment.