Help Center> Virtual Private Cloud> User Guide (ME-Abu Dhabi Region)> FAQs> VPC and Subnet> What Do I Do If a Subnet Cannot Be Deleted Because It Is Being Used by Other Resources?
Updated on 2022-01-25 GMT+08:00

What Do I Do If a Subnet Cannot Be Deleted Because It Is Being Used by Other Resources?

The VPC service allows you to create private, isolated virtual networks. In a VPC, you can manage private IP address ranges, subnets, and gateways. ECSs, BMSs, databases, and some other applications can use subnets created in VPCs.

A subnet cannot be deleted if it is being used by other resources.

You can view all resources of your account on the console homepage and check the resources that are in the subnet to be deleted. You must delete all resources in the subnet before deleting the subnet.

The resources may include:

  • ECS
  • Load balancer
  • VPN
  • Private IP address
  • Custom route
  • NAT gateway
  • VPC endpoint and VPC endpoint service