cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2389
Views
5
Helpful
5
Replies

delete html folder failed in switch

samuel0901
Level 1
Level 1

Dear all,

i want to delete html folder in 2924 switch. it's failed. please help!

Thanks!

Samuel

=======================================

Cat1(config)#no ip http server

Cat1(config)#end

Cat1#

00:33:57: %SYS-5-CONFIG_I: Configured from console by console

Cat1#sh flash

Directory of flash:/

2 drwx 10240 Mar 01 1993 00:06:40 html

4 -rwx 1750311 Mar 01 1993 00:04:29 c2900XL-c3h2s-mz.120-5.3.WC.1.bin

5 -rwx 105970 Mar 01 1993 00:05:29 c2900XL-hdiag-mz-120_5.2-XU

165 -rwx 235 Jan 01 1970 00:00:16 env_vars

167 -rwx 720 Mar 01 1993 01:53:33 vlan.dat

168 -rwx 1290 Mar 01 1993 01:58:01 config.text

3612672 bytes total (467968 bytes free)

Cat1#pwd

flash:

Cat1#delete flash:/html/*

Delete filename [/html/*]? y

Delete flash:y? [confirm]

%Error deleting flash:y (No such file or directory)

Cat1#

=======================================

Cat1#cd html

Cat1#sh flash

Directory of flash:/html/

3 drwx 0 Mar 01 1993 00:02:44 Snmp

6 -rwx 670 Mar 01 1993 00:05:40 ClusterBuilder.html.gz

7 -rwx 624 Mar 01 1993 00:05:40 ClusterManager.html.gz

8 -rwx 211 Mar 01 1993 00:05:40 back.html.gz

9 -rwx 253 Mar 01 1993 00:05:41 basiccfg.html.gz

10 -rwx 648 Mar 01 1993 00:05:41 switchmgr.html.gz

11 -rwx 185 Mar 01 1993 00:05:41 blank.html.gz

12 -rwx 989 Mar 01 1993 00:05:41 cluster.html.gz

13 -rwx 250 Mar 01 1993 00:05:41 menu.html.gz

14 -rwx 347 Mar 01 1993 00:05:41 port.html.gz

15 -rwx 331 Mar 01 1993 00:05:41 cv.html.gz

16 -rwx 860 Mar 01 1993 00:05:41 popup.html.gz

17 -rwx 253 Mar 01 1993 00:05:41 malibu.html.gz

18 -rwx 1435 Mar 01 1993 00:05:41 topmenu.html.gz

19 -rwx 365 Mar 01 1993 00:05:41 setprefs.html.gz

20 -rwx 669952 Mar 01 1993 00:06:08 CM.jar

21 -rwx 125276 Mar 01 1993 00:06:13 CBCV.jar

22 -rwx 103689 Mar 01 1993 00:06:17 common.jar

23 -rwx 74146 Mar 01 1993 00:06:19 CiscoChartPanel.jar

24 -rwx 22038 Mar 01 1993 00:06:20 cvsm.gif

Cat1#pwd

flash:/html/

Cat1#

=====================================

5 Replies 5

ankbhasi
Cisco Employee
Cisco Employee

Hi Sam,

Once you are into html directory then you need to delete all the files into html directory one by one.

I believe now you are into flash:/html/ directory so start deleting individual files one by one and yes in your html directory there is another directory Snmp so you have to go further into snmp directory and delete all files which are into snmp directory.

HTH

Ankur

Hi Ankur,

still failed. it seems not allow to delete any files in flash. what's happen? please help.

thanks!

Samuel

===========================

Cat1#sh flash

Directory of flash:/html/

3 drwx 0 Mar 01 1993 00:02:44 Snmp

6 -rwx 670 Mar 01 1993 00:05:40 ClusterBuilder.html.gz

7 -rwx 624 Mar 01 1993 00:05:40 ClusterManager.html.gz

8 -rwx 211 Mar 01 1993 00:05:40 back.html.gz

9 -rwx 253 Mar 01 1993 00:05:41 basiccfg.html.gz

10 -rwx 648 Mar 01 1993 00:05:41 switchmgr.html.gz

11 -rwx 185 Mar 01 1993 00:05:41 blank.html.gz

12 -rwx 989 Mar 01 1993 00:05:41 cluster.html.gz

13 -rwx 250 Mar 01 1993 00:05:41 menu.html.gz

14 -rwx 347 Mar 01 1993 00:05:41 port.html.gz

15 -rwx 331 Mar 01 1993 00:05:41 cv.html.gz

16 -rwx 860 Mar 01 1993 00:05:41 popup.html.gz

17 -rwx 253 Mar 01 1993 00:05:41 malibu.html.gz

18 -rwx 1435 Mar 01 1993 00:05:41 topmenu.html.gz

19 -rwx 365 Mar 01 1993 00:05:41 setprefs.html.gz

20 -rwx 669952 Mar 01 1993 00:06:08 CM.jar

21 -rwx 125276 Mar 01 1993 00:06:13 CBCV.jar

22 -rwx 103689 Mar 01 1993 00:06:17 common.jar

23 -rwx 74146 Mar 01 1993 00:06:19 CiscoChartPanel.jar

24 -rwx 22038 Mar 01 1993 00:06:20 cvsm.gif

Cat1#del menu.html.gz

Delete filename [menu.html.gz]? y

Delete flash:y? [confirm]

%Error deleting flash:y (No such file or directory)

Cat1#pwd

flash:/html/

Cat1#del flash:html/cv.html.gz

Delete filename [html/cv.html.gz]? y

Delete flash:y? [confirm]

%Error deleting flash:y (No such file or directory)

Cat1#

==============================

Cat1#sh flash

Directory of flash:/

2 drwx 10304 Mar 01 1993 01:39:47 html

4 -rwx 1750311 Mar 01 1993 00:04:29 c2900XL-c3h2s-mz.120-5.3.WC.1.bin

5 -rwx 105970 Mar 01 1993 00:05:29 c2900XL-hdiag-mz-120_5.2-XU

165 -rwx 235 Jan 01 1970 00:00:16 env_vars

167 -rwx 720 Mar 01 1993 01:53:33 vlan.dat

168 -rwx 1290 Mar 01 1993 01:58:01 config.text

3612672 bytes total (466432 bytes free)

Cat1#del flash:vlan.dat

Delete filename [vlan.dat]? y

Delete flash:y? [confirm]

%Error deleting flash:y (No such file or directory)

Cat1#

====================================

Hi Sam,

Can you give a try with command

rmdir flash:/html OR delete flash:html/*

HTH

Ankur

Hi Ankur,

it's ok. thanks!

just omit "y".

Thanks!

Samuel

glen.grant
VIP Alumni
VIP Alumni

Try "del flash:/html/*.* " then delete each file as it asks you if you want to delete them, say yes . Not sure why you want or need to delete the file . This file is only relevant if you happen to be one of the few people who use a browser to manage one of these switches .