There are more AWS SDK examples available in the AWS Doc SDK Examples
Use DeleteVpnGateway
with a CLI
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.
-