I’ve tried a few different things to Del files, so far no luck. Possibly I’m not using the correct library.
https://www.tutorialspoint.com/esp32_for_iot/esp32_for_iot_spiffs_storage.htm
This example does compile, but does not delete the file. Immediately following the attemp to delete, I do a ESPrestart().
You can try to format SPIFFS with the following example:
https://techtutorialsx.com/2019/02/24/esp32-arduino-formatting-the-spiffs-file-system/
Regards,
Sara
The link you provided deletes ALL files. I have only a few specific files to delete.
Hi.
The deleteFile function on the example you provided is the way to delete specific files files: https://github.com/espressif/arduino-esp32/blob/master/libraries/SPIFFS/examples/SPIFFS_Test/SPIFFS_Test.ino
Maybe you’re not entering the correct name of the file or the right path?
To double-check the name of the file you can try calling the listDir() function also defined in that example. Remember that uppercase and lowercase matter.
Regards,
Sara
SOLVED!
Thank you for digging into this issue. It turns out the delete_file() function wasn’t being called properly. You must use the PATH “/abc.txt” for the file argument.
Thanks again.