This chapter describes the basic Cisco NX-OS system commands that begin with W.
write erase
To erase configurations in persistent memory areas, use the write erase command.
write erase[boot | debug]
Syntax Description
boot
(Optional) Erases only the boot configuration.
debug
(Optional) Erases only the debug configuration.
Command Default
Erases all configuration in persistent memory.
Command Modes
EXEC mode
Command History
Release
Modification
6.0(2)N1(1)
This command was introduced.
Usage Guidelines
You can use this command to erase the startup configuration in the persistent memory when information is corrupted or otherwise unusable. Erasing the startup configuration returns the switch to its initial state.
Examples
This example shows how to erase the startup configuration:
switch# write erase
This example shows how to erase the debug configuration in the persistent memory:
switch# write erase debug
Related Commands
Command
Description
copy running-config startup-config
Copies the running configuration to the startup configuration.