'This deletes all open processing issues and triggers reprocessing if
the user disabled the checkbox'

def delete(self, request, project):

    reprocessing_active = bool(project.get_option('sentry:reprocessing_active', True))
    if (not reprocessing_active):
        ProcessingIssue.objects.resolve_all_processing_issue(project=project)
        trigger_reprocessing(project)
        return Response(status=200)
    return Response(status=304)
