public async Task <Either <BaseError, Unit> > Handle(SignOutOfPlex request, CancellationToken cancellationToken) { List <int> ids = await _mediaSourceRepository.DeleteAllPlex(); await _searchIndex.RemoveItems(ids); await _plexSecretStore.DeleteAll(); _entityLocker.UnlockPlex(); return(Unit.Default); }