deleteSession method

Future<bool> deleteSession(
  1. String sessionId
)

Delete a session.

Implementation

Future<bool> deleteSession(String sessionId) async {
  final file = File(_sessionPath(sessionId));
  if (await file.exists()) {
    await file.delete();
    return true;
  }
  return false;
}