An Azure virtual networking service that provides optimized and automated branch-to-branch connectivity.
That error is from the virtual hub’s managed defaultRouteTable, not an Azure VNet route table. One hub connection is still associated with it and propagating routes to it.
Before deleting the hub, either remove that connection or change its hub routing configuration. You can identify the exact resource ID with:
az rest --method get --url "https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/cnt/providers/Microsoft.Network/virtualHubs/mcn-vhub-hub-onprem-b2/hubRouteTables/defaultRouteTable?api-version=2025-05-01" --query "properties.{associated:associatedConnections,propagating:propagatingConnections}" -o json
Remove or reconfigure the returned VNet, VPN, ExpressRoute, or BGP connection first, then retry the hub deletion. If the returned resource ID no longer exists, it is likely orphaned control-plane state and needs an Azure support request.