clear method

void clear()

Wipe the trail and reset the boot counter. Don't call this automatically — the whole point of the trail is that it survives. Reserve clear for an explicit debug button or test setup.

Implementation

void clear() {
  try {
    storage.remove(_auditKey);
    storage.remove(_counterKey);
    _bootNumber = 0;
    _cache.clear();
  } catch (_) {}
}