Function esp_idf_svc::sys::nvs_flash_erase_partition

source ·
pub unsafe extern "C" fn nvs_flash_erase_partition(
    part_name: *const i8,
) -> i32
Expand description

@brief Erase specified NVS partition

Erase all content of a specified NVS partition

@note If the partition is initialized, this function first de-initializes it. Afterwards, the partition has to be initialized again to be used.

@param[in] part_name Name (label) of the partition which should be erased

@return - ESP_OK on success - ESP_ERR_NOT_FOUND if there is no NVS partition with the specified name in the partition table - different error in case de-initialization fails (shouldn’t happen)