RouterOS password can only be reset by reinstalling the router, or using the reset jumper in case the hardware is RouterBOARD.