Updated on 2024-08-07 GMT+08:00

Deleting a Network Interface

Scenarios

This section describes how to delete a network interface.

Notes and Constraints

  • A primary network interface is created together with an instance by default, and cannot be detached from the instance. If you want to delete a primary network interface, you need to delete its instance first, which will also delete the primary network interface.
  • If you want to delete an extended network interface that is attached to an instance, detach the interface from the instance first.
  • Deleting a network interface will also delete its supplementary network interfaces.
  • Deleting a network interface will also unbind its EIP. You can choose to release the EIP if needed.

    If you do not release the EIP, the EIP will continue to be billed, but you can still bind it to other cloud resources.

  • If a network interface has resources associated, deleting the interface will also delete any rules for associated resources that reference it.

    For example, if the next hop of a custom route in a VPC route table is a network interface, deleting the network interface will also delete the route.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Click in the upper left corner and choose Networking > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  4. In the navigation pane on the left, choose Virtual Private Cloud > Network Interfaces.
  5. Locate the row that contains the network interface, click More in the Operation column, and click Delete.

    A confirmation dialog box is displayed.

  6. Confirm the information and click OK.