cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
17659
Views
25
Helpful
7
Replies

c3560, how to remove a directory w/ files in it?

aperez2004
Level 1
Level 1

I am trying to upgrade cisco IOS for c3560 switches and I do not have enough space to upgrade. I trying to removed like the html folders, so I used rmdir to remove a directory but if the directory has files it would not let me erase it.

Does any one know the command to remove the directory with files in it?

Thanks

1 Accepted Solution

Accepted Solutions

sachinraja
Level 9
Level 9

Hello Alejo,

You will need to use the delete command here... the syntax is as given below:

delete /force /recursive flash:dir_name

Use this and let us know if anything else is required on this.

command reference:

http://www.cisco.com/univercd/cc/td/doc/product/lan/cat3560/12225sed/cr1/cli1.htm#wp1861193

Hope this helps.. all the best.. rate replies if found useful.

Raj

View solution in original post

7 Replies 7

sachinraja
Level 9
Level 9

Hello Alejo,

You will need to use the delete command here... the syntax is as given below:

delete /force /recursive flash:dir_name

Use this and let us know if anything else is required on this.

command reference:

http://www.cisco.com/univercd/cc/td/doc/product/lan/cat3560/12225sed/cr1/cli1.htm#wp1861193

Hope this helps.. all the best.. rate replies if found useful.

Raj

It works, thanks

Do this: 

ROMMON MODE

switch: flash
switch: delete flash:c3560-ipservicesk9-mz.122-55.SE10.bin 

y

I just tried issuing the command to delete directory...c3560-ipbase-mz.122-35.SE5 and it says "flash:c3560-ipbase-mz.122-35.SE5" not deleted --is a directory.

Does not work for me, I am in rommon mode and it does not let me delete the directory. Does, someone have and idea, please help?

Thank You

No sir does not work

Dear Sir:

I have tried to delete the directory c3560-ipbasek9-mz.122-35.SE5, with the delete /force /recursive flash:dir_name, but says not deleted .....no such device.   I am in common

Review Cisco Networking products for a $25 gift card