How to erase Maixduino flash memory?

Is there a way to simply erase the flash memory of the Maixduino in a safe way?