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
| Name | Description |
|---|---|
| ip_address | The IP address of the Plex Media server. |
| plex_token | The Plex user token. |
| id | The 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 Code | Description |
|---|---|
| 200 | Success - The request was successful. |
| 400 | Bad request - A parameter is missing. |
| 401 | Unauthorized - The Plex token provided is not valid. |
| 404 | Not 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