Chapter 10 Install and System Administration for FortiOS 5.0 : Basic Administration : Configuration backups : Restore factory defaults
  
Restore factory defaults
There may be a point where need to reset the FortiGate unit to its original defaults; for example, to begin with a fresh configuration. There are two options when restoring factory defaults. The first resets the entire device to the original out-of-the-box configuration:
To reset the FortiGate unit to its factory default settings - web-based manager
1. Go to System > Dashboard > Status.
2. In the System Information widget, select Restore for the System Configuration.
3. Select Restore Factory Defaults at the top of the page.
You can reset using the CLI by entering the command:
execute factoryreset
When prompted, type y to confirm the reset.
Alternatively, in the CLI you can reset the factory defaults but retain the interface and VDOM configuration.
Use the command:
execute factoryreset2
See Also
Configuration backups
Backup and restore a configuration file using SCP
Restoring a configuration