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. In the DirectLink dashboard, check the box of the connection you want to delete.

    Multiselection is available.

    The connection is selected.

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

  3. Click Delete.
    The connection is deleted.

    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 oapi-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
$ oapi-cli --profile "default" DeleteDirectLink \
    --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:

  • Install and configure AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • 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. For more information, see Installing and Configuring AWS CLI.

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.