Factory reset Xiaomi Gateway UART

Hey guys,

Does anyone know if restore would factory reset the xiaomi gateway?

Part of console log

reset_lumi_bind reset_lumi_bind
reboot 
restore 
updatefw <http_url>
updatewififw <http_url>

Just received my USB to UART, restore does not work.