Function esp_idf_svc::sys::nvs_flash_erase
source · pub unsafe extern "C" fn nvs_flash_erase() -> i32
Expand description
@brief Erase the default NVS partition
Erases all contents of the default NVS partition (one with label “nvs”).
@note If the partition is initialized, this function first de-initializes it. Afterwards, the partition has to be initialized again to be used.
@return - 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)