Help Center> Virtual Private Cloud> FAQ> VPC and Subnet> What Do I Do If a Subnet Cannot Be Deleted Because It Is Being Used by Other Resources?

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 network 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
  • BMS
  • CCE cluster
  • CCI instance
  • RDS instance
  • Workspace
  • MRS cluster
  • DCS instance
  • Load balancer
  • VPN
  • Private IP address
  • Custom route
  • NAT gateway
  • VPC endpoint and VPC endpoint service