

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 刪除 AWS Site-to-Site VPN 客戶閘道
<a name="delete-cgw"></a>

您可以刪除不再需要的客戶閘道。您不能刪除站台對站台 VPN 連接中正在使用的客戶閘道。

**使用主控台刪除客戶閘道**

1. 在導覽窗格中，選擇**客戶閘道**。

1. 選取客戶閘道，然後選擇**動作**、**刪除客戶閘道**。

1. 出現確認提示時，請輸入 **delete**，然後選擇 **Delete** (刪除)。

**使用命令列或 API 刪除客戶閘道**
+ [DeleteCustomerGateway](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeleteCustomerGateway.html) (Amazon EC2 Query API)
+ [delete-customer-gateway](https://docs.aws.amazon.com/cli/latest/reference/ec2/delete-customer-gateway.html) (AWS CLI)
+ [Remove-EC2CustomerGateway](https://docs.aws.amazon.com/powershell/latest/reference/items/Remove-EC2CustomerGateway.html) (AWS Tools for Windows PowerShell)