Cat3750 - Deleting a directory in flash

Answered Question
Mar 10th, 2009

hey all, no luck in deleting a directory in flash. yet, all the contents in that directory has already been deleted. tried using the /force option as well but no go. i know i am missing something small. thanks for the help.

AIPA-3750#dir

Directory of flash:/

2 -rwx 976 Mar 4 2009 16:42:23 -10:00 vlan.dat

3 -rwx 1048 Mar 4 2009 16:52:54 -10:00 multiple-fs

4 -rwx 46 Mar 4 2009 16:52:54 -10:00 private-config.text

391 drwx 64 Mar 10 2009 08:38:28 -10:00 c3750-advipservicesk9-mz.122-25.SEE4

5 -rwx 12233687 Mar 10 2009 08:43:28 -10:00 c3750-ipservicesk9-mz.122-50.SE.bin

390 -rwx 8681 Mar 4 2009 16:52:54 -10:00 config.text

15998976 bytes total (2645504 bytes free)

AIPA-3750#del

AIPA-3750#delete flash:/c3750-advipservicesk9-mz.122-25.SEE4

Delete filename [c3750-advipservicesk9-mz.122-25.SEE4]?

Delete flash:/c3750-advipservicesk9-mz.122-25.SEE4? [confirm]

%Error deleting flash:/c3750-advipservicesk9-mz.122-25.SEE4 (Is a directory)

AIPA-3750#delete /force flash:/c3750-advipservicesk9-mz.122-25.SEE4

Delete filename [c3750-advipservicesk9-mz.122-25.SEE4]?

%Error deleting flash:/c3750-advipservicesk9-mz.122-25.SEE4 (Is a directory)

AIPA-3750#

AIPA-3750#

I have this problem too.
0 votes
Correct Answer by Leo Laohoo about 7 years 9 months ago

Try the following:

delete /force /recursive flash:c3750-advipservicesk9-mz.122-25.SEE4

Hope this works.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
pvezina Tue, 03/10/2009 - 12:39

To delete a directory in a 3750 you have to type:

rmdir [directory]

This should work.

Patrick

Correct Answer
Leo Laohoo Tue, 03/10/2009 - 14:01

Try the following:

delete /force /recursive flash:c3750-advipservicesk9-mz.122-25.SEE4

Hope this works.

Robert Ho Tue, 03/10/2009 - 14:22

good deal, i knew it was something small like that. thanks again for the help!

Actions

This Discussion