A simple one, don't do it often so thought I'd add it in a post so if I ever forget I know where to look. Theres two ways of doing it.
Method 1, Using the config-register 0x2102
router> enable
router# configure terminal
router(config)# config-register 0x2102
router(config)# end
router# write erase
router# reload
router# System configuration has been modified. Save? [yes/no]: n
Proceed with reload? [confirm]
Method 2, Using the config-register 0x2142
router> enable
router# configure terminal
router(config)# config-register 0x2142
router(config)# end
router# reload
router# System configuration has been modified. Save? [yes/no]: n
Proceed with reload? [confirm]
router> enable
router# configure terminal
router(config)# config-register 0x2102
router(config)# end
router# write memory
router# reload
router# System configuration has been modified. Save? [yes/no]: n
Proceed with reload? [confirm]
Note: the following configs are not reset to factory defaults using these methods as they are stored in ROMMON:
warm-reboot
memory-size iomem