Updated on 2024-04-30 GMT+08:00

Deleting a Subnet

Scenarios

If your subnet is no longer required, you can delete it:

Subnets are free of charge.

Notes and Constraints

If you want to delete a subnet that has custom routes, virtual IP addresses, or other resources (ECSs, load balancers, or NAT gateways), you need to delete these resources as prompted on the console first and then delete the subnet.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Click in the upper left corner and choose Networking > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  4. In the navigation pane on the left, choose Virtual Private Cloud > Subnets.

    The Subnets page is displayed.

  5. In the subnet list, locate the row that contains the subnet you want to delete and click Delete in the Operation column.

    A confirmation dialog box is displayed.

    If your subnet is used by other resources, you need to delete these resources before deleting a subnet.

  6. Enter DELETE as prompted and click OK.