removeSavedAlbums method

Future<void> removeSavedAlbums(
  1. List<String> albumIds
)

Removes one or more albums from the user's Spotify library.

albumIds is a list of Spotify album IDs to remove. Requires the user-library-modify scope.

Implementation

Future<void> removeSavedAlbums(List<String> albumIds) async {
  final uri = Uri.https(
    _baseApiHost,
    '/v1/me/albums',
    {'ids': albumIds.join(',')},
  );

  await _deleteJson(uri);
}