Bitrix Site Manager

CSubcription::Delete

CSubcription::Delete(
 $ID
);

The method Delete deletes a subscription.

Parameters

ParameterDescription
$ID The subscription ID.

Return Values

Returns an instance of the CDBResult class on success, or false otherwise.

Example



if (($res = CSubscription::Delete($ID)) && 
    $res->AffectedRowsCount() < 1 || 
    $res == false)
    echo "Error deleting subscription.";
else
    echo "Subscription deleted.";