removeTracksFromClientPlaylistRestAction

fun removeTracksFromClientPlaylistRestAction(playlist: String, vararg tracks: String, snapshotId: String? = null): SpotifyRestAction<PlaylistSnapshot>

Remove all occurrences of the specified tracks from the given playlist.

Removing tracks from a user’s public playlist requires authorization of the SpotifyScope.PLAYLIST_MODIFY_PUBLIC scope; removing tracks from a private playlist requires the SpotifyScope.PLAYLIST_MODIFY_PRIVATE scope.

Api Reference

Parameters

playlist

The playlist id

tracks

An array of track ids. Maximum 100.

snapshotId

The playlist snapshot against which to apply this action. recommended to have

fun removeTracksFromClientPlaylistRestAction(playlist: String, vararg tracks: Pair<String, SpotifyTrackPositions>, snapshotId: String? = null): SpotifyRestAction<PlaylistSnapshot>

Remove tracks (each with their own positions) from the given playlist. Bulk requesting is only available when snapshotId is null.

Removing tracks from a user’s public playlist requires authorization of the SpotifyScope.PLAYLIST_MODIFY_PUBLIC scope; removing tracks from a private playlist requires the SpotifyScope.PLAYLIST_MODIFY_PRIVATE scope.

Api Reference

Parameters

playlist

The playlist id

tracks

An array of Pairs of track ids and track positions (zero-based). Maximum 100.

snapshotId

The playlist snapshot against which to apply this action. recommended to have