def delete(self):
try:<EOL><INDENT>return self._server.query(self.key, method=self._server._session.delete)<EOL><DEDENT>except BadRequest:  <EOL><INDENT>log.error('<STR_LIT>'<EOL>'<STR_LIT>' % self.key)<EOL>raise<EOL><DEDENT>
Delete a media element. This has to be enabled under settings > server > library in plex webui.