Enter the command in global mode: reset saved-configuration – clear saved configuration reboot – reboot
Reset saved-configuration
Reboot
After restart, there is nothing left… But your previous username and password are still valid, and you can delete them with the following command: Undo username in system mode
Example:
[huawei] undo admin – Delete user (including login password).