Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Detach and delete a virtual private gateway in AWS Site-to-Site VPN

Focus mode
Detach and delete a virtual private gateway in AWS Site-to-Site VPN - AWS Site-to-Site VPN

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

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 Detach virtual private gateway.

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. After you delete your virtual private gateway, it remains visible for a short while with a state of deleted, and then the entry is automatically removed.

To delete 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, Delete virtual private gateway.

  3. When prompted for confirmation, enter delete and then choose Delete.

To detach a virtual private gateway using the command line or API
To delete a virtual private gateway using the command line or API
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.