removePlaylist method

Future<void> removePlaylist(
  1. String playlistId
)

Removes a playlist with playlistId

Since there is actually no endpoint for removing a playlist, the spotify documentation says this:

We have no endpoint for deleting a playlist in the Web API; the notion of deleting a playlist is not relevant within the Spotify’s playlist system. Even if you are the playlist’s owner and you choose to manually remove it from your own list of playlists, you are simply unfollowing it. Although this behavior may sound strange, it means that other users who are already following the playlist can keep enjoying it.

Implementation

Future<void> removePlaylist(String playlistId) async =>
    unfollowPlaylist(playlistId);