Delete a Spotify playlist
Automatically delete a Spotify playlist on open.spotify.com. Delete a playlist the signed-in Spotify account owns, as the player's Delete action does: it leaves the account's library and its followers can no longer find it. Returns the deleted playlist's id and name. The inverse of create_playlist.
Input
playlist requiredPlaylist id, spotify:playlist: uri or open.spotify.com/playlist/ link. The signed-in account must own it.
Output
deleted requiredTrue once Spotify confirmed the playlist left the account's library.
playlist_id requiredname optionalFAQ
Create a Spotify playlist
Create a playlist on the signed-in Spotify account, with a name, an optional description, and private (the default) or public. Returns the new playlist's id, uri and link, with the name, description and visibility read back from Spotify after saving. Spotify allows several playlists with one name, so calling it twice creates two. Use delete_playlist to undo it.
Remove tracks from a Spotify playlist
Remove tracks from a playlist the signed-in Spotify account can edit. Every occurrence of each given track is removed. A track that is not in the playlist is reported in not_found and left alone; if none of them is in it, nothing is changed. Returns the playlist's track count before and after. The inverse of add_tracks_to_playlist.
Add tracks to a Spotify playlist
Add one or more tracks to the end of a playlist the signed-in Spotify account can edit, in the order given. Spotify accepts duplicates, so a track already in the playlist is added again. Returns the playlist's track count before and after, so the addition can be checked. Use remove_tracks_from_playlist to undo it.
