Viewing and Deleting Resources in a Subnet
Scenarios
VPC subnets have private IP addresses used by cloud resources. This section describes how to view resources that are using private IP addresses of subnets. If these resources are no longer required, you can delete them.
You can view resources, including ECSs, BMSs, network interfaces, load balancers, and NAT gateways.
After you delete all resources in a subnet by referring to this section, the message "Delete the resource that is using the subnet and then delete the subnet." is displayed when you delete the subnet, you can refer to Viewing IP Addresses in a Subnet.
Procedure
- Log in to the management console.
- Click in the upper left corner and select the desired region and project.
- Click in the upper left corner and choose Networking > Virtual Private Cloud.
The Virtual Private Cloud page is displayed.
- In the navigation pane on the left, choose Virtual Private Cloud > Subnets.
The Subnets page is displayed.
- Locate the target subnet and click its name.
- On the Summary page, view the resources in the subnet.
- In the Resources area in the lower part of the page, view the number of resources in the subnet. Click the number to the right of each resource to view the resources in the subnet.
- In the Networking Components area on the right of the page, view the NAT gateways in the subnet.
Figure 1 Viewing resources in a subnet
- Delete resources from the subnet.
Table 1 Viewing and deleting resources in a subnet Resource
Reference
ECS
You cannot jump to the target ECS from the current page. To delete an ECS from the subnet, you need to go to the ECS console, search for the target ECS in the ECS list, and delete it.
- In the ECS list, click the ECS name.
- In the NICs area on the Summary page, view the name of the subnet associated with the ECS.
- Confirm the information and delete the ECS.
BMS
You cannot jump to the target BMS from the current page. To delete a BMS from the subnet, you need to go to the BMS console, search for the target BMS in the BMS list, and delete it.
- In the BMS list, click the BMS name.
- In the NICs area on the Summary page, view the name of the subnet associated with the BMS.
- Confirm the information and release the BMS.
Load balancer
You can directly jump to the target load balancer page.
- Click the number to the right of Load Balancers.
The load balancer list is displayed.
- Confirm the load balancer that you want to delete and click Delete in the Operation column.
For details, see Deleting a Load Balancer.
Network interface
You can directly jump to the target network interface page.
- Click the number to the right of Network Interfaces.
The Network Interfaces page is displayed.
- Confirm the network interface that you want to delete and choose More > Delete in the Operation column.
For details, see Deleting a Network Interface.
NAT gateway
You can directly jump to the target NAT gateway page.
- Click the NAT gateway name in the Networking Components area.
The NAT gateway details page is displayed.
- Click to return to the NAT gateway list.
- Locate the row that contains the NAT gateway and click Delete in the Operation column.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.