removeTrackFromClientPlaylist

suspend fun removeTrackFromClientPlaylist(playlist: String, track: String, positions: SpotifyTrackPositions, snapshotId: String? = null): PlaylistSnapshot

Remove a track in the specified positions (zero-based) from the specified 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

track

The track id

positions

The positions at which the track is located in the playlist

snapshotId

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

suspend fun removeTrackFromClientPlaylist(playlist: String, track: String, snapshotId: String? = null): PlaylistSnapshot

Remove all occurrences of a track from the specified 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

track

The track id

snapshotId

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