[GH-ISSUE #22] Can't remove a track from a playlist #8

Closed
opened 2026-02-27 23:20:22 +03:00 by kerem · 7 comments
Owner

Originally created by @drsm79 on GitHub (Aug 16, 2014).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/22

It seems there's no way to remove a track from a playlist (https://developer.spotify.com/web-api/remove-tracks-playlist/) which is unfortunate, though maybe I missed a call. Will try to implement this weekend...

Originally created by @drsm79 on GitHub (Aug 16, 2014). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/22 It seems there's no way to remove a track from a playlist (https://developer.spotify.com/web-api/remove-tracks-playlist/) which is unfortunate, though maybe I missed a call. Will try to implement this weekend...
kerem closed this issue 2026-02-27 23:20:22 +03:00
Author
Owner

@plamere commented on GitHub (Aug 16, 2014):

Hi Simon - you are right. It hasn't been implemented yet, its a brand new
feature of the API and I haven't updated the library yet.

P

On Sat, Aug 16, 2014 at 5:49 PM, Simon Metson notifications@github.com
wrote:

It seems there's no way to remove a track from a playlist (
https://developer.spotify.com/web-api/remove-tracks-playlist/) which is
unfortunate, though maybe I missed a call. Will try to implement this
weekend...


Reply to this email directly or view it on GitHub
https://github.com/plamere/spotipy/issues/22.

Paul Lamere
Director of Developer Platform
The Echo Nest
http://echonest.com
http://MusicMachinery.com

<!-- gh-comment-id:52408121 --> @plamere commented on GitHub (Aug 16, 2014): Hi Simon - you are right. It hasn't been implemented yet, its a brand new feature of the API and I haven't updated the library yet. P On Sat, Aug 16, 2014 at 5:49 PM, Simon Metson notifications@github.com wrote: > It seems there's no way to remove a track from a playlist ( > https://developer.spotify.com/web-api/remove-tracks-playlist/) which is > unfortunate, though maybe I missed a call. Will try to implement this > weekend... > > — > Reply to this email directly or view it on GitHub > https://github.com/plamere/spotipy/issues/22. ## Paul Lamere Director of Developer Platform The Echo Nest http://echonest.com http://MusicMachinery.com
Author
Owner

@drsm79 commented on GitHub (Aug 17, 2014):

I'll try and add it now - need it for the thing I'm building.

<!-- gh-comment-id:52422986 --> @drsm79 commented on GitHub (Aug 17, 2014): I'll try and add it now - need it for the thing I'm building.
Author
Owner

@MatthiasHerp commented on GitHub (Apr 4, 2020):

I'm currently writing a code to delete specific tracks out of a Spotify Playlist I created, and thus that I own. But somehow I am having Issues with the token, although I am using the 'playlist-modify-public' token which should allow me to delete tracks in my own playlists.
Would greatly appreciate your help :)

I get this error message by the link in the error code:
{
"error": {
"status": 401,
"message": "No token provided"
}
}

My Code:
Spotipy_delete_tracks.txt

Spotipy Authorization Scopes overview:
https://developer.spotify.com/documentation/general/guides/scopes/#playlist-modify-public

<!-- gh-comment-id:609009410 --> @MatthiasHerp commented on GitHub (Apr 4, 2020): I'm currently writing a code to delete specific tracks out of a Spotify Playlist I created, and thus that I own. But somehow I am having Issues with the token, although I am using the 'playlist-modify-public' token which should allow me to delete tracks in my own playlists. Would greatly appreciate your help :) I get this error message by the link in the error code: { "error": { "status": 401, "message": "No token provided" } } My Code: [Spotipy_delete_tracks.txt](https://github.com/plamere/spotipy/files/4431170/Spotipy_delete_tracks.txt) Spotipy Authorization Scopes overview: https://developer.spotify.com/documentation/general/guides/scopes/#playlist-modify-public
Author
Owner

@stephanebruckert commented on GitHub (Apr 4, 2020):

@MatthiasHerp if your playlist is private, use the scope playlist-modify-private

<!-- gh-comment-id:609009634 --> @stephanebruckert commented on GitHub (Apr 4, 2020): @MatthiasHerp if your playlist is private, use the scope `playlist-modify-private`
Author
Owner

@MatthiasHerp commented on GitHub (Apr 4, 2020):

@MatthiasHerp if your playlist is private, use the scope playlist-modify-private

Yes, I checked that, I put it privat and changed the scope as you suggested, and put it back public and used the public scope

<!-- gh-comment-id:609009743 --> @MatthiasHerp commented on GitHub (Apr 4, 2020): > @MatthiasHerp if your playlist is private, use the scope `playlist-modify-private` Yes, I checked that, I put it privat and changed the scope as you suggested, and put it back public and used the public scope
Author
Owner

@stephanebruckert commented on GitHub (Apr 4, 2020):

Hmm the error is not a 401 but an 403 and says "You cannot remove tracks from a playlist you don't own.".

Can you make sure your token has the same owner as your playlist?

Ideally please feel free to create a new issue so other people can see it and potentially help you

<!-- gh-comment-id:609010181 --> @stephanebruckert commented on GitHub (Apr 4, 2020): Hmm the error is not a 401 but an 403 and says "You cannot remove tracks from a playlist you don't own.". Can you make sure your token has the same owner as your playlist? Ideally please feel free to create a new issue so other people can see it and potentially help you
Author
Owner

@MatthiasHerp commented on GitHub (Apr 4, 2020):

Okay, I checked it but somehow it doesn't work.
I made the playlist private and I am able to get the track names so the token should be valid.
I'll make a new issue

<!-- gh-comment-id:609011143 --> @MatthiasHerp commented on GitHub (Apr 4, 2020): Okay, I checked it but somehow it doesn't work. I made the playlist private and I am able to get the track names so the token should be valid. I'll make a new issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#8
No description provided.