AWS SDK for .NET Documentation
DeleteCustomerGateway Method (request)
AmazonAmazon.EC2AmazonEC2ClientDeleteCustomerGateway(DeleteCustomerGatewayRequest) Did this page help you?   Yes   No    Tell us about it...
Deletes a customer gateway.
Declaration Syntax
C#
public DeleteCustomerGatewayResponse DeleteCustomerGateway(
	DeleteCustomerGatewayRequest request
)
Parameters
request (DeleteCustomerGatewayRequest)
Delete Customer Gateway request
Return Value
Delete Customer Gateway Response from the service
Remarks
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).
Exceptions

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)