Deleting a NIC

You can delete a network interface card (NIC) at any time.

Deleting a NIC Using Cockpit v2

Before you begin: Unlink the NIC from any VM it is linked to. For more information, see Detaching a NIC from a VM.

  1. In the NICs dashboard, check the box of the NIC you want to delete.

    Multiselection is available.

    The NIC is selected.

  2. Click IconTerminate Delete.
    A confirmation dialog box appears.

  3. Click Delete.
    The NIC is deleted.

Deleting a NIC Using OSC CLI

Before you begin: Unlink the NIC from any VM it is linked to. For more information, see Detaching a NIC from a VM.

The DeleteNic command deletes the specified network interface card (NIC).
The network interface must not be attached to any virtual machine (VM).

Request sample
$ osc-cli api DeleteNic --profile "default" \
    --NicId "eni-12345678"

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • NicId: The ID of the NIC you want to delete.

The DeleteNic command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Deleting a NIC Using oapi-cli

Before you begin: Unlink the NIC from any VM it is linked to. For more information, see Detaching a NIC from a VM.

The DeleteNic command deletes the specified network interface card (NIC).
The network interface must not be attached to any virtual machine (VM).

Request sample
$ oapi-cli --profile "default" DeleteNic \
    --NicId "eni-12345678"

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • NicId: The ID of the NIC you want to delete.

The DeleteNic command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Deleting an FNI Using AWS CLI

Before you begin:

To delete an FNI, use the delete-network-interface command following this syntax:

Request sample
$ aws ec2 delete-network-interface \
  --profile YOUR_PROFILE \
  --network-interface-id eni-12345678 \
  --endpoint https://fcu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

The FNI is deleted.

Related Pages

Corresponding API Methods

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.