Delete songs from playlist via Apple Music API

I use

htttps://api.music.apple.com/v1/me/library/playlists/${playlistId}/tracks

to add tracks to a playlist I created.

How do I DELETE tracks from the playlist?

The documentation does not mention a method for this. I have tried calling DELETE methods in various combinations but nothing seems to work.

Is this possible?

Answered by DTS Engineer in 863854022

Before trying to edit a playlist, check and see if the playlist's canEdit attribute indicates that you can edit the playlist. For more information please see LibraryPlaylists.Attributes.

Before trying to edit a playlist, check and see if the playlist's canEdit attribute indicates that you can edit the playlist. For more information please see LibraryPlaylists.Attributes.

Delete songs from playlist via Apple Music API
 
 
Q