Microsoft Windows [Version 6.0.6001] (C) Copyright 2006 Microsoft Corp. c:\windows>netsh advfirewall firewall delete rule ?
Usage: delete rule name=[dir=in|out][profile=public|private|domain|any[,...]][program=][service=|any][localip=any|||||][remoteip=any|localsubnet|dns|dhcp|wins|defaultgateway|||||][localport=0-65535|RPC|RPC-EPMap|any[,...]][remoteport=0-65535|any[,...]][protocol=0-255|icmpv4|icmpv6|icmpv4:type,code|icmpv6:type,code|
tcp|udp|any]
Remarks:
- Deletes a name identified by name and optionally by endpoints, ports,
protocol, and type.
- If multiple matches are found, all matching rules are deleted.
- If name=all is specified all rules are deleted from the specified
type and profile.
Examples:
Delete all inbound rules for local port 80:
netsh advfirewall firewall delete rule name=all protocol=tcp localport=80
Delete an inbound rule called "allow80":
netsh advfirewall firewall delete rule name="allow80"