Menu
Amazon Virtual Private Cloud
User Guide

Deleting a VPN Connection

If you no longer need a VPN connection, you can delete it.

Important

If you delete your VPN connection and then create a new one, you have to download new configuration information and have your network administrator reconfigure the customer gateway.

To delete a VPN connection using the console

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. In the navigation pane, choose VPN Connections.

  3. Select the VPN connection and choose Actions, Delete.

  4. Choose Delete.

If you no longer require a customer gateway, you can delete it. You can't delete a customer gateway that's being used in a VPN connection.

To delete a customer gateway using the console

  1. In the navigation pane, choose Customer Gateways.

  2. Select the customer gateway to delete and choose Actions, Delete Customer Gateway.

  3. Choose Yes, Delete.

If you no longer require a virtual private gateway for your VPC, you can detach it.

To detach a virtual private gateway using the console

  1. In the navigation pane, choose Virtual Private Gateways.

  2. Select the virtual private gateway and choose Actions, Detach from VPC.

  3. Choose Yes, Detach.

If you no longer require a detached virtual private gateway, you can delete it. You can't delete a virtual private gateway that's still attached to a VPC.

To delete a virtual private gateway using the console

  1. In the navigation pane, choose Virtual Private Gateways.

  2. Select the virtual private gateway to delete and choose Actions, Delete Virtual Private Gateway.

  3. Choose Yes, Delete.

To delete a VPN connection using the command line or API

To delete a customer gateway using the command line or API

To detach a virtual private gateway using the command line or API

To delete a virtual private gateway using the command line or API