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 c3e16b2 commit ba75935Copy full SHA for ba75935
plexapi/server.py
@@ -493,6 +493,15 @@ def refreshSync(self):
493
self.refreshSynclist()
494
self.refreshContent()
495
496
+ def _allowMediaDeletion(self, toggle):
497
+ """ Toggle allowMediaDeletion.
498
+ Parameters:
499
+ toggle (bool): True enables Media Deletion
500
+ False or None disable Media Deletion
501
+ """
502
+ value = 1 if toggle is True else 0
503
+ return self.query('/:/prefs?allowMediaDeletion=%s' % value, self._session.put)
504
+
505
506
class Account(PlexObject):
507
""" Contains the locally cached MyPlex account information. The properties provided don't
0 commit comments