I see. What I did was to add the possibility to modify the MTU size which is something I need. I still need some storage, but not that much in general so reducing the flash memory sounds like a good option to me.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Or... Maybe just comment some lines like https://github.com/espruino/Espruino/blob/master/boards/MDBT42Q.py#L35 in order to remove functionality that you don't need?
If you modify the saved_code section then that'll reduce the amount of flash memory available for you to save JS to, which might not be what you want.