A-19
Catalyst 2960 and 2960-S Switch Software Configuration Guide
OL-8603-09
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Images
Working with Configuration Files
Clearing Configuration Information
You can clear the configuration information from the startup configuration. If you reboot the swi tch with
no startup configuration, the switch enters the setup program so that you can r econfigure the switch with
all new settings.

Clearing the Startup Configuration File

To clear the contents of your startup configuration, use the erase nvram: or the erase startup-config
privileged EXEC command.
Caution You cannot restore the startup configuration file after it has been deleted.

Deleting a Stored Configuration File

To delete a saved configuration from flash memory, use the delete flash:filename privileged EXEC
command. Depending on the setting of the file prompt global configuration command, you might be
prompted for confirmation before you delete a file. By default, the switch promp ts for confirmation on
destructive file operations. For more information about the file prompt command, see the Cisco IOS
Command Reference for Release 12.2.
Caution You cannot restore a file after it has been deleted.
Replacing and Rolling Back Configurations
The configuration replacement and rollback feature repla ces the running configuration with any saved
Cisco IOS configuration file. You can use the rollback function to roll back to a previous configuration.
These sections contain this information:
Understanding Configuration Replacement and Rollback, page A-19
Configuration Guidelines, page A-21
Configuring the Configuration Archive, page A-21
Performing a Configuration Replacement or Rollback Operation, page A-22

Understanding Configuration Replacement and Rollback

To use the configuration replacement and rollback feature, you should understand these concepts:
Archiving a Configuration, page A-20
Replacing a Configuration, page A-20
Rolling Back a Configuration, page A-20