public async Task ClearLibraryAsync(Guid userId, Guid?collectionId, CancellationToken cancellationToken) { await _metadataRepository.ClearCollectionAsync <Album>(collectionId, cancellationToken).ConfigureAwait(false); await _metadataRepository.ClearCollectionAsync <Artist>(collectionId, cancellationToken).ConfigureAwait(false); await _metadataRepository.ClearCollectionAsync <Genre>(collectionId, cancellationToken).ConfigureAwait(false); await _metadataRepository.ClearCollectionAsync <Track>(collectionId, cancellationToken).ConfigureAwait(false); await _metadataRepository.ClearCollectionAsync <Disposition>(collectionId, cancellationToken).ConfigureAwait(false); await _metadataRepository.ClearCollectionAsync <Playback>(collectionId, cancellationToken).ConfigureAwait(false); }