Microsoft Windows [Version 6.1.7000] (C) Copyright 2009 Microsoft Corp. C:\Windows>netsh advfirewall mainmode delete rule ?
Usage: delete rule name=|all
[profile=any|current|public|private|domain[,...]][type=dynamic|static (default=static)]
Remarks:
- Deletes an existing main mode setting that matches the
name specified. Optionally, profile can be specified.
Command fails if setting with the specified name does not exist.
- If name=all is specified all rules are deleted from the specified
type and profile.
If profile is not specified, the delete applies to all profiles.
Examples:
Delete a main mode rule with name test:
Netsh advfirewall mainmode delete rule name="test"