What will nvs_flash_erase() actually erase?

Hi

I am running an ESP32 with a webserver using some html-files stored on flash memory (SPIFFS), uploaded with the Arduino IDE tool for this purpose.

I am also using the Preferences library with a file of parameters stored on flash.

Now, if I run the nvs_flash_erase() function, will it erase all html files and the Preferences file stored in flash? Or will only parts be erased, if so, which parts?

I would like to accomplish an erase of the preferences file but not the html files.

Thanks!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.