code: def delete_scope(self, scope):
          
          assert isinstance(scope, Scope), 'Scope "{}" is not a scope!'.format(scope.name)
  
          response = self._request('DELETE', self._build_url('scope', scope_id=str(scope.id)))
  
          if response.status_code != requests.codes.no_content:  # pragma: no cover
              raise APIError("Could not delete scope, {}: {}".format(str(response), response.content))
docs: Delete a scope.
  
          This will delete a scope if the client has the right to do so. Sufficient permissions to delete a scope are a
          superuser, a user in the `GG:Configurators` group or a user that is the Scope manager of the scope to be
          deleted.
  
          :param scope: Scope object to be deleted
          :type scope: :class: `models.Scope`
  
          :return: None
          :raises APIError: in case of failure in the deletion of the scope