Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

DeleteNetworkAcl

Description

Deletes a network ACL from a VPC. The ACL must not have any subnets associated with it. You can't delete the default network ACL. For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

Request Parameters

NetworkAclId

The ID of the network ACL.

Type: String

Default: None

Required: Yes

Response Elements

The following elements are returned in a DeleteNetworkAclResponse element.

requestId

The ID of the request.

Type: xsd:string

return

Returns true if the request succeeds. Otherwise, returns an error.

Type: xsd:boolean

Examples

Example Request

This example deletes the network ACL with ID acl-2cb85d45.

https://ec2.amazonaws.com/?Action=DeleteNetworkAcl
&NetworkAclId=acl-2cb85d45
&AUTHPARAMS 

Example Response

<DeleteNetworkAclResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
   <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
   <return>true</return>
</DeleteNetworkAclResponse>