'Removes a membership from the image.'

@utils.mutating
def delete(self, req, image_id, member_id):

    image = self._lookup_image(req, image_id)
    member_repo = self._get_member_repo(req, image)
    member = self._lookup_member(req, image, member_id)
    try:
        member_repo.remove(member)
        return webob.Response(body='', status=http.NO_CONTENT)
    except exception.Forbidden:
        msg = (_('Not    allowed    to    delete    members    for    image    %s.') % image_id)
        LOG.warning(msg)
        raise webob.exc.HTTPForbidden(explanation=msg)
