Delete a ufw rule by number
ufw delete rule by number | remove ufw rule | ufw delete numbered rule | ufw | firewall | rulesCaution: This command changes the system. Understand what it does before you run it.
ufw delete 3Deletes the rule with the given number after ufw has displayed it and asked for confirmation. Handy for rules with IP addresses or comments that are tedious to retype. Find the number first with ufw status numbered.
Note: After each deletion, the following rules move up. When deleting several rules, always display the list again or work from the highest number downward.
Also searched as
- ufw delete rule by number
- remove ufw rule
- ufw delete numbered rule