Specifies whether the switch uses the factory default settings at startup. The default value is disabled. This flag is automatically reset to the default value after the CPU restarts. If you change this parameter, you must restart the switch.
Note
The factorydefaults flag deletes the runtime, primary and backup configuration files, local password files, authentication keys, and certificates. After a factory default, you must change the password on first login.
enable
configure terminal
boot config flags factorydefaults