'Bulk Remove a List of Issues
Permanently remove the given issues. The list of issues to
modify is given through the `id` query parameter.  It is repeated
for each issue that should be removed.
Only queries by \'id\' are accepted.
If any ids are out of scope this operation will succeed without
any data mutation.
:qparam int id: a list of IDs of the issues to be removed.  This
parameter shall be repeated for each issue.
:pparam string organization_slug: the slug of the organization the
issues belong to.
:pparam string project_slug: the slug of the project the issues
belong to.
:auth: required'

@attach_scenarios([bulk_remove_issues_scenario])
def delete(self, request, project):

    group_ids = request.GET.getlist('id')
    if group_ids:
        group_list = list(Group.objects.filter(project=project, id__in=set(group_ids)).exclude(status__in=[GroupStatus.PENDING_DELETION, GroupStatus.DELETION_IN_PROGRESS]))
    else:
        return Response('{"detail":    "You    must    specify    a    list    of    IDs    for    this    operation"}', status=400)
    if (not group_list):
        return Response(status=204)
    self._delete_groups(request, project, group_list)
    return Response(status=204)
