10-25-2017 08:19 PM - edited 02-21-2020 06:34 AM
Can someone help me on whey the below commands doesnt work
xxx#
xxx#del flash:c3560e-universalk9-mz.122-53.SE2
Delete filename [c3560e-universalk9-mz.122-53.SE2]?
Delete flash:c3560e-universalk9-mz.122-53.SE2? [confirm]
%Error deleting flash:c3560e-universalk9-mz.122-53.SE2 (Is a directory)
xxx#Delete /force/recursive flash:c3560e-universalk9-mz.122-53.SE2
^
% Invalid input detected at '^' marker.
xxx#Delete /force/recursive flash:/c3560e-universalk9-mz.122-53.SE2
^
% Invalid input detected at '^' marker.
xxx#rmdir flash:c3560e-universalk9-mz.122-53.SE2
Remove directory filename [c3560e-universalk9-mz.122-53.SE2]?
Delete flash:c3560e-universalk9-mz.122-53.SE2? [confirm]
%Error Removing dir flash:c3560e-universalk9-mz.122-53.SE2 (Directory not empty)
xxx#
Solved! Go to Solution.
10-25-2017 09:35 PM
hi,
you'll need to delete individual files first under the c3560e-universalk9-mz.122-53.SE2 directory before deleting the directory itself.
dir flash:/c3560e-universalk9-mz.122-53.SE2 <<< LIST FILES
delete flash:/c3560e-universalk9-mz.122-53.SE2/FILE-1 <<< DELETE FILES
delete flash:/c3560e-universalk9-mz.122-53.SE2 <<< DELETE DIRECTORY
10-25-2017 09:35 PM
hi,
you'll need to delete individual files first under the c3560e-universalk9-mz.122-53.SE2 directory before deleting the directory itself.
dir flash:/c3560e-universalk9-mz.122-53.SE2 <<< LIST FILES
delete flash:/c3560e-universalk9-mz.122-53.SE2/FILE-1 <<< DELETE FILES
delete flash:/c3560e-universalk9-mz.122-53.SE2 <<< DELETE DIRECTORY
10-25-2017 09:36 PM
This helps! Thanks a lot!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide