Метод deleteOwnedBot

public

Сигнатура метода

public function deleteOwnedBot(string $kind, int $botId): Result

Возвращает: Result

Описание

Strict counterpart of {@see self::deleteBots()} for the managed system AI agent lifecycle. The optional deletion of the grid stays best effort and keeps swallowing every failure, while the lifecycle needs a checkable result: an unavailable bot module must not be read as a deleted bot, so it has an error code of its own. The absence of the bot is answered by the caller, which resolves the reserved code before it asks for a deletion.

Параметры

2
Имя Тип По умолчанию Флаги
$kind string —
—
$botId int —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/Service/AiAgentGrid/ChatbotDeleteService.php
Расположение метода в файле
Строки 59–83

Исходный код

PHP