

# 删除 VPC 的网络 ACL
<a name="delete-network-acl"></a>

当不再使用某个网络 ACL 时，可以将其删除。如果网络 ACL 有关联子网，则无法删除该网络 ACL。您无法删除默认网络 ACL。

**要使用控制台从网络 ACL 中移除子网关联**

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

1. 在导航窗格中，选择 **Network ACLs**（网络 ACL）。**关联对象**列指示与每个网络 ACL 关联的子网数。如果没有关联的子网，则此列为 `-`。

1. 选择网络 ACL。

1. 选择**操作**和**编辑子网关联**。

1. 移除子网关联。

1. 选择**保存更改**。

**要使用命令行描述您的网络 ACL，包括关联**
+ [describe-network-acls](https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-network-acls.html) (AWS CLI)
+ [Get-EC2NetworkAcl](https://docs.aws.amazon.com/powershell/latest/reference/items/Get-EC2NetworkAcl.html) (AWS Tools for Windows PowerShell)

**要使用命令行替换网络 ACL 关联**
+ [replace-network-acl-association](https://docs.aws.amazon.com/cli/latest/reference/ec2/replace-network-acl-association.html) (AWS CLI)
+ [Set-EC2NetworkAclAssociation](https://docs.aws.amazon.com/powershell/latest/reference/items/Set-EC2NetworkAclAssociation.html) (AWS Tools for Windows PowerShell)

**要使用控制台删除网络 ACL**

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

1. 在导航窗格中，选择 **Network ACLs**（网络 ACL）。

1. 选择网络 ACL。

1. 选择**操作**和**删除网络 ACL**。

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

**要使用命令行删除网络 ACL**
+ [delete-network-acl](https://docs.aws.amazon.com/cli/latest/reference/ec2/delete-network-acl.html) (AWS CLI)
+ [Remove-EC2NetworkAcl](https://docs.aws.amazon.com/powershell/latest/reference/items/Remove-EC2NetworkAcl.html) (AWS Tools for Windows PowerShell)