How to delete the device configuration

4

To clear the current configuration and restore factory settings of a device, run the reset saved-configuration command to clear the configuration file for the next startup and then restart the device. If you are prompted to save the configuration, select N indicating that the device will not save the current configuration.

NOTICE:
Exercise caution and follow the instructions of the technical support personnel when you run this command.

reset saved-configuration
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:y
Warning: Now clearing the configuration in the device.
Info: Succeeded in clearing the configuration in the device.
reboot
Info: The system is now comparing the configuration, please wait.
Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file flash:/vrpcfg.zip. Continue? [Y/N]:n
Info: If you want to reboot with saving diagnostic information, input N and then execute reboot save diagnostic-information.
System will reboot! Continue?[Y/N]:y
NOTE:
The command outputs on your device may be different from that provided in this example.

Other related questions:
How do I delete the configuration on a specified interface of a WLAN device
To delete all configurations on a specified interface of a WLAN device, you need to delete the configurations one by one. For example, if GE0/0/1 works in auto-negotiation mode and automatically negotiates both the rate and the duplex mode, run the following commands to delete corresponding configurations: - Run the undo auto duplex command in the interface view to restore the default duplex mode for the Ethernet electrical interface in auto-negotiation mode. - Run the undo auto speed command in the interface view to restore the default negotiation rate for the Ethernet electrical interface in auto-negotiation mode.

How can I delete patches from a WLAN device
Run the following command to delete patches from a WLAN device: patch delete all //Delete all patches. Delete patches when the following situations occur: - If you find errors in patches that have been loaded to the system, run this command to delete the patches to prevent patch errors from affecting system operating. - If the patch installation fails and a rollback procedure is necessary, run this command to delete all patches.

How to delete device IDs for SIP users on the U1900 series unified gateway
config delete sipue eid 2560 //Delete the device whose ID is 2560 for a single SIP user. config delete batch sipue //Delete SIP devices (including SIP soft clients, SIP hard terminals, and analog phones connected to SIP IADs) in batches. Command format: config delete batch sipue seid seid [step step] [number number] config delete batch sipue seid seid localgwid localgwid (U1911|U1960|U1980|U1981) Parameter description: seid: indicates the device ID, which is equivalent to the registration account number of a SIP device, such as the SIP user ID configured during IP phone registration. step: indicates the step between two consecutive device IDs. number: indicates the number of devices to delete in a batch. For example, if seid is set to 7000, step is set to 2, and number is set to 3, the following devices are added: 7000, 7002, and 7004. localgwid: indicates the local gateway ID configured in the distributed network. The value is an integer and ranges from 0 to 19 for U1911, 0 to 199 for U1960, 0 to 299 for U1980, and 0 to 1023 for U1981. Remarks: Before deleting SIP devices, delete corresponding SIP users.

Deleting the configuration file from an S series switch
When an S series switch (except the S1700) is in running state, the configuration file in the flash memory or CF card is protected as a system file and cannot be deleted using the delete command. You can use one of the following methods to delete the configuration file: 1. For an S series switch running V100R003 or a later version, run the following commands to delete the configuration file: system-view [HUAWEI] undo startup saved-configuration //Delete the startup configuration file of the switch from the storage device. [HUAWEI] quit delete //Delete the configuration file. 2. For an S series switch running V100R005 or a later version, or an E series switch, run the following commands to delete the configuration file: reset saved-configuration //Delete the startup configuration file of the switch from the storage device. delete //Delete the configuration file. 3. Delete the configuration file in the BootROM menu. a. Run the reboot command. After the switch restarts, press Ctrl+E (only supported by E series switches and some S series switches) or Ctrl+B to enter the BootROM menu. Enter the default password. b. Press Ctrl+Z to enter the hidden menu and choose Delete file from Flash to delete the configuration file from the flash memory. c. Select 6. Reboot to restart the switch. Note: After the configuration file of a switch in use is deleted, the switch configuration is lost if you do no run the save command to save the configuration file before restarting the switch. Exercise caution when deleting the configuration file.

How to delete SNMP configuration on an AR router
Run an undo command corresponding to the SNMP feature to delete SNMP configuration from an AR router.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top