delete

Use this command to delete a pre-existing access list rule entry or range of entries.

Syntax

delete {entry | from entry to entry}

Parameters

entry | from entry to entry] (Optional) Specifies an entry or range of entries to delete. When deleting a range of entries, from specifies the beginning of the range, and to specifies the end of the range inclusive. An entry is a valid pre-existing access list rule from 1 to 5000.

Defaults

None.

Mode

Configuration command, standard or extended access list configuration.

Examples

This example enters configuration mode for standard access list 2 and deletes rule entry 20:

System(rw-config)->ip access-list standard 2
System(rw-cfg-std-acl)->delete 20
System(rw-cfg-std-acl)->

This example enters configuration mode for standard access list 2 and deletes rule entry 10 - 12:

System(rw-config)->ip access-list standard 2
System(rw-cfg-std-acl)->delete from 10 to 12
System(rw-cfg-std-acl)->