def METHOD_NAME(self, request):
    agent_ids = request.GET.METHOD_NAME("ids")
    try:
        agent_ids = [int(i) for i in agent_ids.split(",")]
    except Exception:
        return R.failure("agent_ids should able to numeric")
    result = []
    for pk in agent_ids:
        try:
            user = request.user
            queryset = IastAgent.objects.filter(user=user, pk=pk).first()
            if queryset:
                self.agent = queryset
                self.delete_error_log()
                self.delete_heart_beat()
                self.delete_sca()
                self.delete_vul()
                self.delete_method_pool()
                self.delete_method_pool_replay()
                self.delete_replay_queue()
                self.agent.delete()
                result.append(True)
            else:
                result.append(False)
                pass
        except Exception as e:
            result.append(False)
            logger.warning(f"user_id:{request.user.id} msg:{e}")
    success = list(filter(lambda x: x is True, result))
    failure = list(filter(lambda x: x is False, result))
    if len(success) == len(agent_ids):
        return R.success(msg=_("Deleted Successfully"))
    if len(failure) == len(agent_ids):
        return R.success(msg=_("Deletion failed"))
    return R.success(
        msg=_("Successfully deleted {} strips, failed to deleted {} strips").format(len(success), len(failure))
    )