Question: ufw how to delete all rules?
Answer: You can use the "delete" command for deleting the ufw rule. Please type the command "ufw delete" and followed by the option that you want to be deleted, allow or deny. That command will delete the rule "allow ssh". be careful, don't lock yourself out of the server.