iMore: How to forget a Wi-Fi network on your iPhone or iPad

You know that time you connected to that shady store’s WiFi hotspot or airport WiFi that wouldn’t let you get anywhere until you paid, and now your iPhone or iPad keeps connecting to those hotspots and you don’t know how to stop it?