| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Deletes a virtual private gateway. Use this when you want to delete a VPC and all its associated components because you no longer need them. We recommend that before you delete a virtual private gateway, you detach it from the VPC and delete the VPN connection. Note that you don't need to delete the virtual private gateway if you just want to delete and recreate the VPN connection between your VPC and data center.
For more information about virtual private gateways, see Adding an IPsec Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.
VpnGatewayIdThe ID of the virtual private gateway.
Type: String
Default: None
Required: Yes
The following elements are returned in a
DeleteVpnGatewayResponse element.
requestIdThe ID of the request.
Type: xsd:string
returnReturns true if the request succeeds. Otherwise, returns an error.
Type: xsd:boolean
This example deletes the virtual private gateway with ID vgw-8db04f81.
https://ec2.amazonaws.com/?Action=DeleteVpnGateway &vpnGatewayId=vgw-8db04f81 &AUTHPARAMS
<DeleteVpnGatewayResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/"> <requestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</requestId> <return>true</return> </DeleteVpnGatewayResponse>