deleteKey method

Future<void> deleteKey(
  1. String userId
)

Delete a shared key by user ID

Implementation

Future<void> deleteKey(String userId) async {
  _sharedKeysCache.remove(userId); // Remove from cache
  await _database.delete(
    tableSharedKeys,
    where: '$columnUserId = ?',
    whereArgs: [userId],
  );
}