The following code examples show how to use DeleteVpnGateway
.
- AWS CLI
-
To delete a virtual private gateway
This example deletes the specified virtual private gateway. If the command succeeds, no output is returned.
Command:
aws ec2 delete-vpn-gateway --vpn-gateway-id
vgw-9a4cacf3
-
For API details, see DeleteVpnGateway
in AWS CLI Command Reference.
-
For a complete list of AWS SDK developer guides and code examples, see Create Amazon EC2 resources using an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.