PurposeCommand or Action
Device# erase nvram
For all platforms except the Class A
Flash file system platforms, this
command erases NVRAM. The
startup configuration file cannot be
restored once it has been deleted. On
Class A Flash file system platforms,
when you use the erase
startup-configEXEC command, the
device erases or deletes the
configuration pointed to by the
CONFIG_FILE environment
variable. If this variable points to
NVRAM, the device erases
NVRAM. If the CONFIG_FILE
environment variable specifies a
flash memory device and
configuration filename, the device
deletes the configuration file. That
is, the device marks the file as
“deleted,” rather than erasing it. This
feature allows you to recover a
deleted file.
Note
Deleting a Specified Configuration File
To delete a specified configuration on a specific flash device, complete the task in this section:
Procedure
PurposeCommand or Action
Enables privileged EXEC mode.enable
Step 1
Example:
• Enter your password if prompted.
Device> enable
Deletes the specified configuration file on the
specified flash device.
delete flash-filesystem:filename
Example:
Step 2
System Management Configuration Guide, Cisco IOS XE Bengaluru 17.4.x (Catalyst 9400 Switches)
311
Managing Configuration Files
Deleting a Specified Configuration File