1. Dakota's Dad, remove() is not standard C - unlink() is, but a rose by any other name...
2. DGC Morelli, wildcards do not work. You need to do your own globbing.
3. Check for case. Files are case sensitive on NetOS.
4. Format is not a standard C command. There is a NetOS call to wipe the drive, I don't recall it at the moment, but since this is a development ME with JTAG (I assume), you can just tell it to wipe it when you start the debugger.
-Erik