Specifications

2-201
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738-01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
erase
erase
To erase a file system, use the erase command.
erase {/all [non-default | nvram:] | cat4000_flash | nvram: | startup-config}
Syntax Description
Defaults This command has no default settings.
Command Modes Privileged EXEC mode
Usage Guidelines
Caution When you use the erase command to erase a file system, you canno t recover th e files i n the file system.
In addition to the command options shown above, options with the prefix slave that are used to ident ify
nvram: and flash (such as slavenvram: and slavecat4000_flash:) appear in the command help messages
on the dual supervisor engine redu ndancy switch.
The erase nvram: command replaces the write erase and the erase startup-conf g commands. This
command erases both the startup-config and the private-config file.
The erase /all nvram: command erases all files in nvram: in addition to startup-config file and
private-config file.
The erase cat4000 _flash: command erases the VLAN database configuration file.
The erase /all non-default command facilitates the work of a manufacturing facility and repair center.
It erases the configuration and states stored in the nonvolatile storage and resets the Catalyst 4500 series
switch to the factory default settings. The default settings include those mentioned in the Cisco IOS
library as well as those set by the erase /all non-default command (vtp mode=transparent, and the
ROMMON variables: C onfigReg=0x21 01, PS1= “rommon ! >” and En ableAut oConfig=1).
For the default settings, refer to these guides:
Cisco IOS Configurati on Fundamentals Configurati on Guide, Release 12.2, at this URL:
http://www.cisco.com/en/US/docs/ios/fundamentals/configuration/guide/12_4/cf_12_4_book.html
/all nvram : Erases everyt hing in nvram:.
/all non-d ef aul t Erases files and configuration in nonvolatile storage including
nvram:, bootflash:, cat4000_f lash:, and crashinf o: of the local
supervisor engine. Resets the Catalyst 4500 series s witch to the
factory default se ttings.
Note This command option is intended to work only on a
standalone supervisor engin e.
cat4000_flash: Erases the VLAN database configuration file.
nvram: Erases the startup-config and private-config file in NVRAM.
startup-config: Erases the startup-config and private-config file in NVRAM.