clear

Function clear 

Source
pub async fn clear<MC: RawMutex + 'static, MF: RawMutex + 'static, F: JournalFlash + 'static>(
    counters: &'static NodeCountersMutex<MC, MF, F>,
)
Expand description

Drop all persisted device-node counters (factory clear). The RAM map clears unconditionally; a failed tombstone write self-heals because the map is left dirty and the next flush rewrites the (now empty) state.