Bitrix Site Manager

CAdvContract::Delete

boolean
CAdvContract::Delete(
 int CONTRACT_ID,
 char(1) CHECK_RIGHTS="Y"
);

The method Delete deletes a contract and all banners attached to it.

Parameters

CONTRACT_ID
Contract ID
CHECK_RIGHTS
If "Y", the deletion permissions are checked for the current user. If "N", permissions are not checked.