Delete a Playlist

Each user on a Plex server can create their own playlists. A playlist can contain either videos, music, or photos, and can't be shared with other users. There are smart and non-smart playlists. This API command will delete a playlist for a user.

URL

DELETE http://{ip_address}:32400/playlists/{id}?X-Plex-Token={plex_token}

Parameters

NameDescription
ip_addressThe IP address of the Plex Media server.
plex_tokenThe Plex user token.
idThe ID associated with the playlist. You can get the ID by calling the Get All Playlists API command and using the value in the ratingKey attribute.

Return Status

HTTP CodeDescription
200Success - The request was successful.
400Bad request - A parameter is missing.
401Unauthorized - The Plex token provided is not valid.
404Not Found - The playlist associated with the ID was not found.

Response

No response is returned by the command. The status code will indicate whether the playlist was deleted successfully.

Examples

curl -X DELETE http://{ip_address}:32400/playlists/{id}?X-Plex-Token={plex_token}
import requests
plex_url = http://{ip_address}:32400/playlists/{id}?X-Plex-Token={plex_token}
response = requests.delete(plex_url)
print(response.text)
$response = Invoke-RestMethod 'http://{ip_address}:32400/playlists/{id}?X-Plex-Token={plex_token}' -Method 'DELETE'
Write-Output $response
Subscribe
Display