• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/checklist/checklistfacade.php
  • Класс: BitrixTasksCheckListCheckListFacade
  • Вызов: CheckListFacade::deleteByEntityId
static function deleteByEntityId($entityId, $userId)
{
	$checkListItems = static::getList(['ID', 'PARENT_ID'], [static::$entityIdName => $entityId]);
	$checkListItemsTree = static::getObjectStructuredRoots($checkListItems, $entityId, $userId);

	foreach ($checkListItemsTree as $item)
	{
		/** @var CheckList $item */
		static::deleteComposite($entityId, $userId, $item);
	}
}