'Remove an Issue
Removes an individual issue.
:pparam string issue_id: the ID of the issue to delete.
:auth: required'

@attach_scenarios([delete_aggregate_scenario])
def delete(self, request, group):

    from sentry.tasks.deletion import delete_group
    updated = Group.objects.filter(id=group.id).exclude(status__in=[GroupStatus.PENDING_DELETION, GroupStatus.DELETION_IN_PROGRESS]).update(status=GroupStatus.PENDING_DELETION)
    if updated:
        GroupHash.objects.filter(group=group).delete()
        transaction_id = uuid4().hex
        project = group.project
        delete_group.apply_async(kwargs={'object_id': group.id, 'transaction_id': transaction_id}, countdown=3600)
        self.create_audit_entry(request=request, organization_id=(project.organization_id if project else None), target_object=group.id, transaction_id=transaction_id)
        delete_logger.info('object.delete.queued', extra={'object_id': group.id, 'transaction_id': transaction_id, 'model': type(group).__name__})
    return Response(status=202)
