Deleting a Client Gateway

You can delete a client gateway that is no longer associated with a VPN connection.

This action deletes the identification of the resource as a client gateway. However, it does not delete the resource.

Deleting a Client Gateway Using Cockpit v2

Before you begin: Delete all VPN connections with which the client gateway is associated. For more information, see Deleting a VPN Connection.

  1. Click inside the Client Gateways dashboard to make checkboxes appear.

  2. Check the box of the client gateway you want to delete.
    The client gateway is selected and an action menu appears.

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

  4. Click Delete Client Gateway.
    The client gateway is deleted.

    Deleted resources remain visible for 1 hour.

Deleting a Client Gateway Using OSC CLI

Before you begin: Delete all VPN connections with which the client gateway is associated. For more information, see Deleting a VPN Connection.

The DeleteClientGateway command deletes a client gateway.
You must delete the VPN connection before deleting the client gateway.

Request sample
$ osc-cli api DeleteClientGateway --profile "default" \
    --ClientGatewayId "cgw-12345678"

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

  • ClientGatewayId: The ID of the client gateway you want to delete.

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

The DeleteClientGateway 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 Customer Gateway Using AWS CLI

Before you begin: Delete all VPN connections with which the customer gateway is associated. For more information, see Deleting a VPN Connection.

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

Request sample
$ aws ec2 delete-customer-gateway \
    --profile YOUR_PROFILE \
    --customer-gateway-id cgw-73a7fba3 \
    --endpoint https://fcu.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.

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

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

The specified customer gateway 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.