Documentation

Delete

mixed
CSubscription::Delete(
    int ID
);

Method deletes a subscription. Static method.

Note: this method employs an internal transaction. If you use MySQL and InnoDB, with previously opened transaction, it must be closed before connecting the method.

Parameters

ParameterDescriptionAvailable from version
ID Subscription ID.

Returned value

Returns a CDBResult on success. Otherwise returns false.

Example

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


© «Bitrix24», 2001-2024