• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/store.php
  • Класс: BitrixCatalogControllerStore
  • Вызов: Store::deleteAction
public function deleteAction(int $id)
{
	$res = $this->delete($id);
	if (!is_null($res) && $res->isSuccess())
	{
		$result = 'Y';
	}
	else
	{
		$result = [
			'error' => 'ERROR_DELETE',
			'error_description' => implode(
				'. ',
				$this->getErrors()
			),
		];
	}

	return $result;
}