

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 删除端点服务
<a name="delete-endpoint-service"></a>

完成端点服务后，您可以将其删除。如果有任何端点连接到处于 `available` 或 `pending-acceptance` 状态的端点服务，则您无法删除端点服务。

删除端点服务不会删除关联的负载均衡器，也不会影响向负载均衡器目标组注册的应用程序服务器。

**使用控制台删除端点服务**

1. 打开位于 [https://console.aws.amazon.com/vpc/](https://console.aws.amazon.com/vpc/) 的 Amazon VPC 控制台。

1. 在导航窗格中，选择 **Endpoint services**（端点服务）。

1. 选择端点服务。

1. 选择 **Actions（操作）**、**Delete endpoint services（删除端点服务）**。

1. 提示进行确认时，输入 **delete**，然后选择**删除**。

**使用命令行删除端点服务**
+ [delete-vpc-endpoint-service-配置](https://docs.aws.amazon.com/cli/latest/reference/ec2/delete-vpc-endpoint-service-configurations.html) ()AWS CLI
+ [Remove-EC2EndpointServiceConfiguration](https://docs.aws.amazon.com/powershell/latest/reference/items/Remove-EC2EndpointServiceConfiguration.html)（适用于 Windows 的工具 PowerShell）