def METHOD_NAME(self, request: Request, organization, query_id) -> Response:
    """
    Delete a saved query
    """
    if not self.has_feature(organization, request):
        return self.respond(status=404)
    try:
        model = DiscoverSavedQuery.objects.get(
            Q(is_homepage=False) | Q(is_homepage__isnull=True),
            id=query_id,
            organization=organization,
        )
    except DiscoverSavedQuery.DoesNotExist:
        raise ResourceDoesNotExist
    model.METHOD_NAME()
    return Response(status=204)