remove rule line iptable code example
Example 1: remove port iptables
# flag -D for delete
sudo iptables -D INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
Example 2: remove all iptables rules
sudo iptables -F
# flag -D for delete
sudo iptables -D INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
sudo iptables -F