You can restore the factory default of the configuration file or the switch depending on the scenario.
If you want to clear all service configurations and data files, run the following command to restore the switch to factory default in one-click mode.
This command restores the factory configuration of the system configuration file and clears all service configurations and data files of a switch. Exercise caution when running this command.
The result of the latest factory default restoration of the switch is displayed.