If your subnet is no longer required, you can delete it.
If you want to delete a subnet that has virtual IP addresses, network interfaces, or other resources (such as ECSs, load balancers, or NAT gateways), you need to delete these resources as prompted on the console first.
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.
If your subnet is used by other resources, you need to delete these resources before deleting a subnet.