We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b7de89 commit 7dd0d75Copy full SHA for 7dd0d75
plexapi/mixins.py
@@ -597,10 +597,14 @@ def setTheme(self, theme):
597
)
598
599
def deleteTheme(self):
600
- """ Delete the theme from a Plex object. """
601
- key = f'/library/metadata/{self.ratingKey}/themes'
602
- self._server.query(key, method=self._server._session.delete)
603
- return self
+ """ Delete the theme from a Plex object.
+
+ Raises:
+ :exc:`~plexapi.exceptions.NotImplementedError`: Themes cannot be deleted through the API.
604
+ """
605
+ raise NotImplementedError(
606
+ 'Themes cannot be deleted through the API.'
607
+ )
608
609
610
class EditFieldMixin:
0 commit comments