09-13-2010 08:35 AM - edited 03-06-2019 12:56 PM
I'm receiving %Error deleting flash:c3750-ipbase-mz.122-50.SE2 (Is a directory).
How do I just delete c3750-ipbase-mz.122-50.SE2?
Switch#dir flash:
Directory of flash:/
2 -rwx 2222 Mar 1 1993 00:04:15 +00:00 config.text
3 -rwx 5 Mar 1 1993 00:04:15 +00:00 private-config.text
4 -rwx 2223 Mar 1 1993 00:00:45 +00:00 config.text.backup
5 -rwx 5 Mar 1 1993 00:00:45 +00:00 private-config.text.backup
6 drwx 512 Mar 1 1993 00:13:13 +00:00 c3750-ipbase-mz.122-50.SE2
428 -rwx 10281615 Mar 1 1993 00:19:23 +00:00 c3750-ipbasek9-mz.122-50.SE2.bin
429 -rwx 1048 Mar 1 1993 00:06:16 +00:00 multiple-fs
09-13-2010 08:43 AM
russeeeeccna wrote:
I'm receiving %Error deleting flash:c3750-ipbase-mz.122-50.SE2 (Is a directory).
How do I just delete c3750-ipbase-mz.122-50.SE2?
Switch#dir flash:
Directory of flash:/2 -rwx 2222 Mar 1 1993 00:04:15 +00:00 config.text
3 -rwx 5 Mar 1 1993 00:04:15 +00:00 private-config.text
4 -rwx 2223 Mar 1 1993 00:00:45 +00:00 config.text.backup
5 -rwx 5 Mar 1 1993 00:00:45 +00:00 private-config.text.backup
6 drwx 512 Mar 1 1993 00:13:13 +00:00 c3750-ipbase-mz.122-50.SE2
428 -rwx 10281615 Mar 1 1993 00:19:23 +00:00 c3750-ipbasek9-mz.122-50.SE2.bin
429 -rwx 1048 Mar 1 1993 00:06:16 +00:00 multiple-fs
What exactly do you want to delete - the directory or the .bin file ?
if directory then -
delete /force /recursive flash:c3750-ipbase-mz.122.50.SE2
if the .bin file then -
delete flash:c3750-ipbase-mz.122.50.SE2.bin
Jon
01-18-2018 06:05 AM
Thanks
09-13-2010 08:43 AM
Hello,
The image is actually within a directory. You need to get into the
directory, delete the image, and then delete the directory.
Switch# delete
flash:/c3750-ipbase-mz.122-50.SE2/c3750-ipbase-mz.122-50.SE2.bin
Switch#rmdir flash:/c3750-ipbase-mz.122-50.SE2
Hope this helps.
Regards,
NT
01-14-2017 12:51 AM
Hi All
RouterASR1001#dir /all
Directory of bootflash:/
11 drwx 16384 Apr 3 2015 10:14:26 +08:00 lost+found
808001 drwx 4096 Jun 4 2015 05:42:42 +08:00 .prst_sync
12 -rw- 370173792 Apr 3 2015 10:16:23 +08:00 asr1001-universal.03.10.04.S.153-3.S4-ext.bin
888801 drwx 4096 Apr 3 2015 10:18:17 +08:00 .installer
193921 drwx 4096 Apr 3 2015 10:44:49 +08:00 core
921121 drwx 4096 Apr 3 2015 10:45:13 +08:00 .rollback_timer
13 -rw- 0 Apr 3 2015 10:45:27 +08:00 tracelogs.950
581761 drwx 8192 Jan 14 2017 16:38:20 +08:00 tracelogs
14 -rw- 372898188 Jun 4 2015 05:37:13 +08:00 asr1001-universalk9.03.10.05.S.153-3.S5-ext.bin
15 -rw- 456597260 Jan 13 2017 20:41:25 +08:00 asr1001-universalk9.03.16.04b.S.155-3.S4b-ext.bin
7806750720 bytes total (6208110592 bytes free)
RouterASR1001#
RouterASR1001#delete bootflash:asr1001-universal.03.10.04.S.153-3.S4-ext.bin
Is it right command to delete the old IOS image from ASR router?
09-13-2010 08:48 AM
Jon is correct , follow his instructions ,that deletes the whole directory and contents on 3750, 3560's etc..
09-13-2010 12:29 PM
Yes, I'm trying to delete just the image.
Switch#delete flash:c3750-ipbase-mz.122.50.SE2.bin
Delete filename [c3750-ipbase-mz.122.50.SE2.bin]?
Delete flash:c3750-ipbase-mz.122.50.SE2.bin? [confirm]
%Error deleting flash:c3750-ipbase-mz.122.50.SE2.bin (No such file or directory)
Switch#delete flash:c3750-ipbase-mz.122.50.SE2
Delete filename [c3750-ipbase-mz.122.50.SE2]?
Delete flash:c3750-ipbase-mz.122.50.SE2? [confirm]
%Error deleting flash:c3750-ipbase-mz.122.50.SE2 (No such file or directory)
09-13-2010 12:34 PM
russeeeeccna wrote:
Yes, I'm trying to delete just the image.
Switch#delete flash:c3750-ipbase-mz.122.50.SE2.bin
Delete filename [c3750-ipbase-mz.122.50.SE2.bin]?
Delete flash:c3750-ipbase-mz.122.50.SE2.bin? [confirm]
%Error deleting flash:c3750-ipbase-mz.122.50.SE2.bin (No such file or directory)
Switch#delete flash:c3750-ipbase-mz.122.50.SE2
Delete filename [c3750-ipbase-mz.122.50.SE2]?
Delete flash:c3750-ipbase-mz.122.50.SE2? [confirm]
%Error deleting flash:c3750-ipbase-mz.122.50.SE2 (No such file or directory)
you are typing the image name in wrong -
it's not 122.50 it's 122-50
Edit - apologies as i have put 122.50 in my original post so my fault you have the wrong name !
Jon
09-13-2010 01:45 PM
Thanks for the help everyone.
But I still can't delete it.
Switch#delete flash:c3750-ipbase-mz.122-50.SE2
Delete filename [c3750-ipbase-mz.122-50.SE2]?
Delete flash:c3750-ipbase-mz.122-50.SE2? [confirm]
%Error deleting flash:c3750-ipbase-mz.122-50.SE2 (Is a directory)
Switch#
Switch#delete flash:c3750-ipbase-mz.122-50.SE2.bin
Delete filename [c3750-ipbase-mz.122-50.SE2.bin]?
Delete flash:c3750-ipbase-mz.122-50.SE2.bin? [confirm]
%Error deleting flash:c3750-ipbase-mz.122-50.SE2.bin (No such file or directory)
Switch#dir flash:
Directory of flash:/
2 -rwx 2222 Mar 1 1993 00:04:15 +00:00 config.text
3 -rwx 5 Mar 1 1993 00:04:15 +00:00 private-config.text
4 -rwx 2223 Mar 1 1993 00:00:45 +00:00 config.text.backup
5 -rwx 5 Mar 1 1993 00:00:45 +00:00 private-config.text.backup
6 drwx 512 Mar 1 1993 00:13:13 +00:00 c3750-ipbase-mz.122-50.SE2
428 -rwx 10281615 Mar 1 1993 00:19:23 +00:00 c3750-ipbasek9-mz.122-50.SE2.bin
429 -rwx 1048 Mar 1 1993 00:06:16 +00:00 multiple-fs
27998208 bytes total (4981760 bytes free)
Switch#
09-13-2010 02:01 PM
Try this and post the results.
Switch#cd flash:c3750-ipbase-mz.122-50.SE2
Switch#dir flash: <--------post the results of this
Mike
09-13-2010 02:44 PM
Switch#cd flash:c3750-ipbase-mz.122-50.SE2
Switch#
Switch#
Switch#dir flash:
Directory of flash:/c3750-ipbase-mz.122-50.SE2/
7 -rwx 9565189 Mar 1 1993 00:05:45 +00:00 c3750-ipbase-mz.122-50.SE2.bin
8 drwx 5632 Mar 1 1993 00:10:07 +00:00 html
427 -rwx 643 Mar 1 1993 00:12:36 +00:00 info
27998208 bytes total (4981760 bytes free)
Switch#
09-13-2010 05:46 PM
Switch#dir flash:
Directory of flash:/
2 -rwx 2222 Mar 1 1993 00:04:15 +00:00 config.text
3 -rwx 5 Mar 1 1993 00:04:15 +00:00 private-config.text
4 -rwx 2223 Mar 1 1993 00:00:45 +00:00 config.text.backup
5 -rwx 5 Mar 1 1993 00:00:45 +00:00 private-config.text.backup
6 drwx 512 Mar 1 1993 00:13:13 +00:00 c3750-ipbase-mz.122-50.SE2
428 -rwx 10281615 Mar 1 1993 00:19:23 +00:00 c3750-ipbasek9-mz.122-50.SE2.bin
429 -rwx 1048 Mar 1 1993 00:06:16 +00:00 multiple-fs
27998208 bytes total (4981760 bytes free)
If you want to delete
6 drwx 512 Mar 1 1993 00:13:13 +00:00 c3750-ipbase-mz.122-50.SE2
switch#delete /force /recursive flash:c3750-ipbase-mz.122-50.SE2
If you want to delete
428 -rwx 10281615 Mar 1 1993 00:19:23 +00:00 c3750-ipbasek9-mz.122-50.SE2.bin
switch# delete flash:c3750-ipbasek9-mz.122-50.SE2.bin
09-13-2010 05:44 PM
Follow Jon Marshall's instructions , at the command line
delete /force /recursive flash:c3750-ipbase-mz.122-50.SE2 ---> hit enter , this will take out the whole directory including the image inside the directory after about 10 seconds...
09-13-2010 10:51 PM
Hi :
Please use show ver to see what is your flash IOS file structure.
If the IOS is under the directory, please delete it with flash:/sub-directory name/IOS name in bin.
If the IOS is just under the flash without directory, please delete it IOS name in bin.
For example in this case,
428 -rwx 10281615 Mar 1 1993 00:19:23 +00:00 c3750-ipbasek9-mz.122-50.SE2.bin
You can try to delete the IOS by using :
delete flash:c3750-ipbasek9-mz.122-50.SE2.bin
The c3750-ipbase-mz.122-50.SE2 is directory, you cannot delete it. If there is c3750-ipbasek9-mz.122-50.SE2.bin under this directory :
You can try to delete by using :
delete flash:/c3750-ipbasek9-mz.122-50.SE2.bin/c3750-ipbasek9-mz.122-50.SE2.bin
Good luck and best regards!
09-13-2010 11:36 PM
Hi :
Sorry, just amended the mistake from below mail :
The c3750-ipbase-mz.122-50.SE2 is directory, you cannot delete it. If there is c3750-ipbasek9-mz.122-50.SE2.bin under this directory :
You can try to delete by using :
delete flash:/c3750-ipbase-mz.122-50.SE2/c3750-ipbasek9-mz.122-50.SE2.bin
In this case the directoey name is c3750-ipbase-mz.122-50.SE2 and the IOS name is c3750-ipbasek9-mz.122-50.SE2.bin.
Good luck and best regards!
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: