• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/component/entitydetails/basecomponent.php
  • Класс: Bitrix\Crm\Component\EntityDetails\BaseComponent
  • Вызов: BaseComponent::deleteEntity
static function deleteEntity(int $entityTypeID, $entityID, array $options = array())
{
	$entity = Crm\Entity\EntityManager::resolveByTypeID($entityTypeID);
	if(!$entity)
	{
		$entityTypeName = \CCrmOwnerType::ResolveName($entityTypeID);
		throw new Main\NotSupportedException("Entity type: '{$entityTypeName}' is not supported in current context");
	}

	$entity->delete($entityID, $options);
}