Erasing a configuration file

To erase a configuration file:

Procedure
  1. To erase the startup configuration file, use the erase startup-config command.
    If a custom default configuration file exists and the erase startup-config command is executed, the current active configuration is erased and the switch is booted with the custom default configuration. If a custom default configuration file does not exist and the erase startup-config command is executed, the current active configuration is erased and the switch is booted with the system default configuration.
  2. To erase the custom default configuration file, use the erase default-config command.

The following example shows how to erase the startup config file when a default custom config file exists

switch(config)# erase startup-config
Configuration will be deleted, and existing login passwords
removed, and device rebooted (using the custom default
configuration), continue [y/n]?

The following example shows how to erase the startup config file when a default custom config file does not exist
switch(config)# erase startup-config
Configuration will be deleted, and existing login passwords removed,
and device rebooted, continue [y/n]?

The following example shows how to erase the custom default config file.
switch(config)# erase default-config
The custom default configuration will be erased. The "erase
startup-config" command will now use system generated default
configuration. Continue [y/n]?