Deleting a Subnet

Scenarios

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

Prerequisites

You can delete a subnet only if there are no resources in the subnet. If there are resources in the subnet, you must delete those resources before you can delete the subnet.

You can view all resources of your account on the console homepage and check the resources that are in the subnet you want to delete.

The resources may include:

  • ECS

  • BMS

  • CCE cluster

  • RDS instance

  • MRS cluster

  • DCS instance

  • Load balancer

  • VPN

  • Private IP address

  • Custom route

  • NAT gateway

Procedure

  1. Log in to the management console.

  2. Click image1 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 Subnets page, locate the target subnet and click Delete.

  7. Click Yes in the displayed dialog box.