How to delete a file from memory using FATFS library
If you look at the full version of FatFS, it contains the f_unlink function, which will allow you to remove files or directories. You just pass it the filename or folder to remove.