deleting file from flash

I'm trying to delete a file from flash and get this message "Can not delete file on the device"

how can i delete this..?

Console> (enable) show flash
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
  1 .D ffffffff 5fd7b46a  6431f0   21  6304109 Sep 22 2000 08:01:02 cat6000-sup.
5-5-1.bin
  2 .. ffffffff 1be77d1b  eb54cc   22  8856156 Aug 02 2005 10:25:20 cat6000-sup_
6-3-1a.bin

830260 bytes available (15160524 bytes used)
Console> (enable) delete flash:cat6000-sup.5-5-1.bin
Can not delete file on the device
Console> (enable)
jlymnAsked:
Who is Participating?
 
cmonteithCommented:
Hmm....

do a "show disk0: " or "show slot0: "

does the file contents show up with either of those commands?

Try the sweeze command using "squeeze slot0: " (or disk0: ) and see if the switch is seeing it as that instead....  I've ran into that before.
0
 
cmonteithCommented:
the .D tag means the file is "deleted" but recoverable...kind of like the Recycle Bin in Windows.

To get rid of it use the Squeez command (squeeze [m/]device)
:


Console> (enable) aqueeze flash:cat6000-sup.5-5-1.bin
0
 
cmonteithCommented:
oops.....got too cut/paste happy....

the command doesn't include the filename...your purging the device (will nuke any .D'd files)

Console> (enable) aqueeze flash:
0
 
jlymnAuthor Commented:
this is the error message i get when i try...

Squeeze device flash failed (unknown device)
0
 
jlymnAuthor Commented:
Console> (enable) show flash
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
  1 .D ffffffff 5fd7b46a  6431f0   21  6304109 Sep 22 2000 08:01:02 cat6000-sup.
5-5-1.bin
  2 .. ffffffff 1be77d1b  eb54cc   22  8856156 Aug 02 2005 10:25:20 cat6000-sup_
6-3-1a.bin

830260 bytes available (15160524 bytes used)
Console> (enable) squeeze flash:

All deleted files will be removed, proceed (y/n) [n]? y

Squeeze operation may take a while, proceed (y/n) [n]? y

Squeeze device flash failed (unknown device)
Console> (enable)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.