CBitrixCloudMonitoring :: deleteDevice: Bitrix method

      
<?php 
//  CBitrixCloudMonitoring :: deleteDevice()
//  /dist/bitrix/modules/bitrixcloud/classes/general/monitoring.php:88

    
public function deleteDevice($domain$deviceId)
    {
        if (
$deviceId != "")
        {
            
$option CBitrixCloudOption::getOption('monitoring_devices');
            
$devices $option->getArrayValue();
            
$index array_search($domain."|".$deviceId$devices);
            if (
$index !== false)
            {
                unset(
$devices[$index]);
                
$option->setArrayValue($devices);
            }
        }
    }