Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

DeleteVpnGateway

Description

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.

Request Parameters

VpnGatewayId

The ID of the virtual private gateway.

Type: String

Default: None

Required: Yes

Response Elements

The following elements are returned in a DeleteVpnGatewayResponse element.

requestId

The ID of the request.

Type: xsd:string

return

Returns true if the request succeeds. Otherwise, returns an error.

Type: xsd:boolean

Examples

Example Request

This example deletes the virtual private gateway with ID vgw-8db04f81.

https://ec2.amazonaws.com/?Action=DeleteVpnGateway
&vpnGatewayId=vgw-8db04f81
&AUTHPARAMS

Example Response

<DeleteVpnGatewayResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">					
   <requestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</requestId>
   <return>true</return>
</DeleteVpnGatewayResponse>