Deletes a customer gateway.
| C# |
public DeleteCustomerGatewayResponse DeleteCustomerGateway( DeleteCustomerGatewayRequest request )
- request (DeleteCustomerGatewayRequest)
- Delete Customer Gateway request
Delete Customer Gateway Response from the service
You must delete the VPN connection before deleting
the customer gateway.
AWS might delete any customer gateway if you leave
it inactive for an extended period of time (inactive
means that there's no VPN connection in use with the
customer gateway).
| Exception | Condition |
|---|---|
| WebException | |
| AmazonEC2Exception |