- ESP_OK on success - ESP_ERR_NOT_FOUND if there is no NVS partition labeled "nvs" in the partition table - different error in case de-initialization fails (shouldn't happen)
Notes
If the partition is initialized, this function first de-initializes it. Afterwards, the partition has to be initialized again to be used.
Examples
nvs_flash_erase() is referenced by 136 libraries and example projects: