Hi @FPI Erick Aspiras(Erick Aspiras),
Thank you for reaching out on Microsoft Q&A forum.
I understand you want to safely delete an ExpressRoute VPN gateway. Please follow these steps:
1.Check for Dependencies Before deleting the gateway, confirm no active connections or dependencies exist to avoid impacting other resources. In the Azure portal, navigate to the gateway > Connections to review and delete any listed items. Alternatively, use these Azure CLI commands to verify:
az network express-route gateway connection list --gateway-name <GatewayName> --resource-group <ResourceGroup>
Make sure the connection list is empty. Reference: Azure CLI ExpressRoute Gateway Delete
2.Delete the Gateway Once dependencies are cleared, delete the gateway with:
az network vnet-gateway delete --name <GatewayName> --resource-group <ResourceGroup> --no-wait
3.Then, remove any associated resources such as public IPs if they are no longer needed:
az network public-ip delete --name <PublicIPName> --resource-group <ResourceGroup>
4.Also, delete the GatewaySubnet from the virtual network if applicable.
5.Verify Deletion Confirm your gateway is deleted by listing the gateways:
az network express-route gateway list --resource-group <ResourceGroup>
You should no longer see the deleted VPN gateway listed.
Following this process will help you safely delete your ExpressRoute gateway.
Please let us know if this helps or if you need further assistance.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".