I have deleted some files from flash but it still shown as below even after i restarted the router:
System flash directory:
File Length Name/status
1 129828 P00308000400.bin
2 461 P00308000400.loads
142 824 XMLDefault7905.cnf.xml [deleted]
143 424 XMLDefault7902.cnf.xml [deleted]
144 824 XMLDefault7920.cnf.xml [deleted]
145 963 XMLDefault7921.cnf.xml [deleted]
146 404 XMLDefault7936.cnf.xml [deleted]
147 1037 XMLDefault7970.cnf.xml [deleted]
148 1141 XMLDefault7970-1.cnf.xml [deleted]
149 1214 XMLDefault7970-2.cnf.xml [deleted]
150 1037 XMLDefault7971.cnf.xml [deleted]
151 1141 XMLDefault7971-1.cnf.xml [deleted]
152 1214 XMLDefault7971-2.cnf.xml [deleted]
153 1017 XMLDefault7962.cnf.xml [deleted]
1- Is there a command to apply the deleted command?
2- Do these files take space from flash or they are actually deleted?
3- If they are actually deleted why router still shows them like that?
I have run into this before and I had to "squeeze" the flash filesystem to make the deletions dissappear. Take a look at the following link for more information
Router# squeeze filesystem:
Permanently deletes all files marked "deleted" on a Flash memory device.
Do you know if the flash has ever been completely erased. I can not confirm this but maybe for the squeeze command to show you will have first needed to erase the flash filesystem.
On Cisco 2600 and 3600 series routers,the entire flash file system needs to be erased once before the squeeze command can be used.