Made stupid thing: RB continously rebooting

Hi everybody,
I made a script that loads backup configuration at startup, so at startup I load the configuration backup and it reboots again.
How can I reset configuration to factory default?
Formatting nand?
Thanks.

You don’t need to format NAND. It can be easily corrected by reseting to defaults
http://wiki.mikrotik.com/wiki/MikroTik_Password_Recovery
or by netinstall.

Ok, thanks, it works!