issuing a WiFi.disconnect(); would erase the known ssid/password and prevent automatic connection the next time you boot
WiFi.disconnect();