clear method

Future<void> clear()

Delete the persistence file.

Implementation

Future<void> clear() async {
  try {
    final file = File(filePath);
    if (file.existsSync()) {
      await file.delete();
    }
  } catch (e) {
    _logger.warning('Failed to clear persistence file: $e');
  }
}