You can clear the configuration file that is loaded at the current startup of the system. This section describes how to clear the configuration file that has been loaded to a device and how to delete configurations from an interface at a time.
The configuration file needs to be cleared in either of the following situations:
The configuration file loaded at the current startup is cleared.
Before clearing the configuration file of the router, the system compares the configuration file loaded at the current startup with that to be loaded at the next startup.
Exercise caution when running this command. If this command is required, run it with assistance from Huawei technical support personnel.
This configuration process is supported only on the Admin-VS.
You can delete configurations from an interface at a time using either of the commands listed in Table 1.
View |
Command |
Description |
Precautions |
---|---|---|---|
System view |
clear configuration interface interface-type interface-number |
Deletes all configurations from a specified interface. Note that the command is run in the system view, and you need to remember the type and number of the interface whose configurations are to be deleted. |
Exercise caution when running either command. |
Interface view |
Deletes all configurations from the current interface at a time.
NOTE:
You cannot run this command in the controller interface view. |
Run reset default-configuration
The default configuration file on the device is deleted.
Exercise caution when running this command. If this command is required, run it with assistance from Huawei technical support personnel.