Updated on 2024-03-05 GMT+08:00

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, 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

  1. Log in to the management console.
  2. Click in the upper left corner and choose Network > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

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

    The Subnets page is displayed.

  4. Locate the target subnet and click its name.

    The subnet details page is displayed.

  5. On the Summary page, view the resources in the subnet.
    1. In the VPC Resources area, view the quantities of resources, such as ECSs, BMSs, network interfaces, and load balancers, in the subnet. Click the resource quantity with a hyperlink to view the resources in the subnet.
    2. In the Networking Components area on the right of the page, view the NAT gateways in the subnet.
  6. Delete resources from the subnet.
    Table 1 Viewing and deleting resources in a subnet

    Resource

    Reference

    Load balancer

    You can directly switch to load balancers from the subnet details page.

    1. Click the load balancer quantity.

      The load balancer list is displayed.

    2. Locate the row that contains the load balancer and click Delete in the Operation column.