Yea I am able to erase and upload the firmware through the serial connection.
I have been trying to switch between wifi to USB. I followed the guide at getting a quick start with micropython and change the mode to USB. My led is glowing blue as suggested in the guide but it has been stuck at uiflow as if it is waiting for connection with wifi. Is it possible to completely remove these modes as for my current situation I don't need the WiFi. The image below shows where it is stuck: