How to remove specific iptables rules

First, you will need to list the rules. The number of the rules will be displayed :

iptables -vnL --line-numbers

To delete the rule number 22 (for example) :

iptables -D INPUT 22