Tuesday, April 24, 2007

Q: How do I delete files and directories from flash of a router or switch with minimum fuss?

A:

If you want to get rid of everything in flash, just use erase flash:.

Otherwise, you can use delete /force /recursive flash:{target}. The /force qualifier will keep you from getting prompted before deleting each object, and /recursive will give you the ability to delete directories and subdirectories even when they are not empty.