Erase flash before storing there a new configuration