code: def delete(self):
          
          try:
              return self._server.query('/library/sections/%s' % self.key, method=self._server._session.delete)
          except BadRequest:  # pragma: no cover
              msg = 'Failed to delete library %s' % self.key
              msg += 'You may need to allow this permission in your Plex settings.'
              log.error(msg)
              raise
docs: Delete a library section.