formatting flash filesystem

i have a problem with my flash filesystem. I use the filesystem installed with the SP_INCLUDE_FILESYSTEM_FOR_CLIBRARY TRUE option in the bsp.h.
Due to an error in my program, I can´t access or delete a dir in my Filesystem. Now i want to “formatting” it to get a clean filesystem. I have found the example “eraseFlash” from Cameron but this is not for my Digi ConnectME. Or can i use this riskless?