Deleting a Subnet
Scenarios
If your subnet is no longer required, you can delete it.

The VPC service has multiple resources. Subnets can be used for free. For details about VPC resource pricing, see Pricing Details.
Constraints
- Subnet: No IP address in the subnet is being used by other resources, such as virtual IP addresses, elastic network interfaces, supplementary network interfaces, ECSs, SNAT rules of NAT gateways, VPC endpoints, VPC endpoint services, and load balancers.

Procedure
- Go to the subnet list page.
- 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.
If a VPC cannot be deleted, refer to Why Can't I Delete My VPCs and Subnets?
- Enter DELETE as prompted and click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.