Deleting a Connection

You can delete a specified connection between your network and a DirectLink location if you no longer need it. This action removes the configuration of DirectLink router and the connection does not forward traffic anymore. However, the physical connection is not deleted.

Deleting a Connection Using Cockpit v2

Before you begin: Delete any DirectLink interface associated with the connection you want to delete.

  1. Click inside the DirectLinks dashboard to make checkboxes appear.

  2. Check the box of the connection you want to delete.

    Multiselection is available.

    The connection is selected and an action menu appears.

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

  4. Click Delete.
    The connection is deleted.

    Deleted resources remain visible for 1 hour.

Deleting a Connection Using Cockpit v1

Cockpit v1 is no longer fixed nor supported. Cockpit v1 is no longer available in the cloudgouv-eu-west-1 Region. For more information, see End-of-Life Policy.

Before you begin: Delete any private virtual interface associated with the connection you want to delete.

  1. Click Network/Security > Direct Link.

  2. Click the connection you want to delete.

    Multiselection is available.

    The DirectLink connection is selected.

  3. Click Delete .
    The DELETE CONNECTION(S) dialog box appears.

  4. Click Delete to validate.
    The connection is deleted and no long appears on the Direct Link page.

    Deleted resources remain visible for 1 hour.

Deleting a Connection Using OSC CLI

Before you begin: Delete any DirectLink interface associated with the connection you want to delete.

The DeleteDirectLink command deletes a specified DirectLink.
Before deleting a DirectLink, ensure that all your DirectLink interfaces related to this DirectLink are deleted.

Request sample
$ osc-cli api DeleteDirectLink --profile "default" \
    --DirectLinkId "dxcon-12345678"

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

  • DirectLinkId: The ID of the DirectLink you want to delete.

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

The DeleteDirectLink 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 Connection Using AWS CLI

Before you begin: Delete any private virtual interface associated with the connection you want to delete.

To delete a connection, use the delete-connection command following this syntax:

Request sample
$ aws directconnect delete-connection \
    --profile YOUR_PROFILE \
    --connection-id dxcon-12345678 \
    --endpoint https://directlink.eu-west-2.outscale.com

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

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • connection-id: The ID of the connection you want to delete.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The delete-connection command returns the following elements:

  • ownerAccount: The account ID of the owner of the connection.

  • connectionID: The ID of the connection.

  • connectionState: The updated state of the connection. For more information, see About DirectLink > DirectLink Physical Connections.

  • bandwidth: The bandwidth for the connection.

  • location: The location where the connection is.

  • connectionName: The name of the connection.

  • region: The Region where the connection is.

Result sample
{
    "ownerAccount": "123456789000",
    "connectionId": "dxcon-12345678",
    "connectionState": "deleted",
    "bandwidth": "1Gbps",
    "location": "PAR1",
    "connectionName": "Connection to Outscale",
    "region": "eu-west-2"
}

The connection is deleted.

Deleted resources remain visible for 1 hour.

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.