Edit

Share via


Troubleshoot InUseRouteTableCannotBeDeleted error code

This article discusses how to identify and resolve the InUseRouteTableCannotBeDeleted error that occurs when you try to delete a Microsoft Azure Kubernetes Service (AKS) cluster.

Symptoms

When you try to delete an AKS cluster, you receive the following error message:

Error Code: "InUseRouteTableCannotBeDeleted"

{

"Route table aks-agentpool-routetable is in use and cannot be deleted. ...../providers/Microsoft.Network/routeTables/aks-agentpool-test-routetable"

}

Cause

You tried to delete the AKS cluster while its associated route table was still in use.

Solution

Remove the associated route table from the subnet. For instructions, see Dissociate a route table from a subnet. Then, try again to delete the AKS cluster.

Contact us for help

If you have questions, you can ask Azure community support. You can also submit product feedback to Azure feedback community.