02-15-2006 04:57 PM - edited 07-04-2021 11:38 AM
I am trying to delete files on an AP so I can recover from a failed IOS load. How can I delete all the files in a directory at once. I can't seem to use *.* or * Here is the commands I have tried:
ap: delete flash:/c1200-k9w7-mx.123-7.JA2/html/level/1/*.js
Are you sure you want to delete "flash:/c1200-k9w7-mx.123-7.JA2/html/level/1/*.js" (y/n)?y
File "flash:/c1200-k9w7-mx.123-7.JA2/html/level/1/*.js" not deleted -- no such file or directory
ap: delete flash:/c1200-k9w7-mx.123-7.JA2/html/level/1/*
Are you sure you want to delete "flash:/c1200-k9w7-mx.123-7.JA2/html/level/1/*" (y/n)?y
File "flash:/c1200-k9w7-mx.123-7.JA2/html/level/1/*.*" not deleted -- no such file or directory
02-15-2006 11:40 PM
Not sure if this works without loading the IOS first, but you could try:
delete /force /recursive flash:/c1200-k9w7-mx.123-7.JA2/html/level/1
02-16-2006 05:00 AM
Unfortunalty in the mode I am in the there are no other options for Delete.. I ended up using the output of the dir command to create a txt file that I used to manually copy and paste commands back in to my telnet session to delete each file step by step. It took a while but the AP has an IOS back on it.
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: