- Documentation
VPN Connet
API reference
Customer gateway
DeleteCustomerGateway - Deleting a customer gateway
Customer gateway
DeleteCustomerGateway - Deleting a customer gateway
DeleteCustomerGateway - Deleting a customer gateway
Call DeleteCustomerGateway to delete a specified customer gateway.
Instructions
You can only delete customer gateways that are not used by any IPsec-VPN connections. If used, call DeleteVpnConnection to delete the IPsec-VPN connection before deleting the customer gateway. Debug
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
Request parameters
The following only details request parameters specific to this API and key common parameters. For more information, see Common parameters. Action String required Example: DeleteCustomerGateway
The action that you want to perform. Value: DeleteCustomerGateway.
Version String required Example: 2020-04-01
The API version.
CustomerGatewayId String required Example: cgw-3tex2x1cwd4c6c0v****
Response parameters
Only the response parameters specific to this API are listed below. For more information, see Response structure. RequestId String optional Example: 202203211611080102121461940900****
Request ID.
Request examples
Response examples
Error codes
The following table lists the error codes related to the business logic for this API. For details, see Common error codes. Last updated: 2026.05.09 11:19:49