ESP8266 - Unable to change MQTT Host

Is there.a way to just erase fhe flash without erasing the OMGgateway firmware on the ESP8266? I want it to keep running the software it has, just get back to the wifi manager so I can re-enter the new MQTT gateway details.