This section describes how to delete a subnet.
If you want to delete a subnet that has custom routes, virtual IP addresses, or other resources, you need to delete these resources as prompted on the console first and then delete the subnet.
You can refer to Why Can't I Delete My VPCs and Subnets?
in the upper left corner and select the desired region and project.
in the upper left corner and choose Network > Virtual Private Cloud.The Virtual Private Cloud page is displayed.
The Subnets page is displayed.
A confirmation dialog box is displayed.
Enter DELETE as prompted and click OK.
If a subnet cannot be deleted, a message will be displayed on the console. Delete the resources that are in the subnet by referring to Why Can't I Delete My VPCs and Subnets?