• Virtual Private Cloud

  1. Help Center
  2. Virtual Private Cloud
  3. User Guide
  4. VPC and Subnet
  5. Deleting a VPC
  6. Deleting a Subnet

Deleting a Subnet


You can delete a subnet to release network resources if the subnet is no longer required.

A subnet cannot be deleted if it is being used by an ECS, VPN, or private IP address. To delete a subnet in these cases, you must first delete the ECS, VPN, or private IP address.


The following resources using the subnet have been deleted:

  • ECS
  • BMS
  • CCE cluster
  • RDS instance
  • Workspace
  • MRS cluster
  • DCS instance
  • Elastic load balancer
  • VPN
  • Private IP address
  • Custom route
  • NAT gateway

Check and delete related resources on the management console.


  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. On the console homepage, under Network, click Virtual Private Cloud.
  4. In the navigation pane on the left, click Virtual Private Cloud.
  5. On the Virtual Private Cloud page, locate the VPC from which a subnet is to be deleted and click the VPC name.
  6. On the Subnet page, locate the target subnet and click Delete.
  7. Click Yes in the displayed dialog box.