How to delete a UFW firewall rule on Ubuntu / Debian Linux

Originally published at: https://www.cyberciti.biz/faq/how-to-delete-a-ufw-firewall-rule-on-ubuntu-debian-linux/

How do I delete a UFW firewall rule running on Ubuntu or Debian Linux? What is the command to remove ufw rules on a CentOS Linux server? How can I list and remove firewall rules when using UFW?