removeSavedTracks method

Future<void> removeSavedTracks(
  1. List<String> trackIds
)

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

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

Implementation

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

  await _deleteJson(uri);
}