• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/update/block.php
  • Класс: BitrixLandingUpdateBlock
  • Вызов: Block::unregister
static function unregister($codes)
{
	if (!is_array($codes))
	{
		$codes = [$codes];
	}

	$res = UpdateBlock::getList([
		'select' => [
			'ID'
		],
		'filter' => [
			'=CODE' => $codes
		]
	]);
	while ($row = $res->fetch())
	{
		UpdateBlock::delete($row['ID']);
	}
}