Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Deleting Cisco 2800/2900 Configuration

I have a Cisco 2800/2900 router that handles sensitive information for the DoD.  If I do a "clear config all", will this delete the running config permanently or is there a way that someone can recover the config?

3 REPLIES

Hey Michael,It only clears

Hey Michael,

It only clears running configuration, makes sure to clear the startup configuration as well for complete wipe out.

#delete start

or alternatively you may do:

#wr erase

#reload
 

HTH.

Regards,

RS.

Cisco Employee

Hi, When you issue the

Hi,

 

When you issue the squeeze command, the router copies all valid files to the beginning of Flash memory and erases all files marked "deleted." At this point, you cannot recover deleted files, and you can now write to the reclaimed Flash memory space.

 

http://www.cisco.com/c/en/us/td/docs/ios/12_2/configfun/configuration/guide/ffun_c/fcf006.html#wp1001432

 

Permanently Deleting Files on a Flash Memory Device

When a Flash memory device is full, you may need to rearrange the files so that the space used by the deleted files can be reclaimed. To determine whether a Flash memory device is full, use the dir EXEC command.

To permanently delete files on a Flash memory device, use the following command in privileged EXEC mode:

 

 
Command
Purpose

Router# squeeze filesystem:

Permanently deletes all files marked "deleted" on a Flash memory device.

 

 

On Cisco 2600 and 3600 series routers,the entire flash file system needs to be erased once before the squeeze command can be used. After being erased once, the squeeze command should operate properly on the flash file system for the rest of the flash file system's history.

To erase an entire flash file system on a Cisco 2600 or 3600 series router, perform the following steps:

 

 
Command
Purpose

Router# no partition flash-filesystem:

Removes all partitions on the specified flash file system.

Note The reason for removing partitions is to ensure that the entire flash file system is erased. The squeeze command can be used in a flash file system with partitions after the flash file system is erased once.

Router# erase filesystem:

Erases all of the file on the specified flash file system.

 

 

When you issue the squeeze command, the router copies all valid files to the beginning of Flash memory and erases all files marked "deleted." At this point, you cannot recover deleted files, and you can now write to the reclaimed Flash memory space.

 

HTH

Regards,

Akash

New Member

Thank you both for your

Thank you both for your replies.  I appreciate the assistance.

1811
Views
0
Helpful
3
Replies