Bitrix Site Manager

CAdvBanner::Delete

boolean
CAdvBanner::Delete(
 int BANNER_ID,
 char(1) CHECK_RIGHTS = "Y"
);

The Delete method is used to delete a banner.

Parameters

ParameterDescription
BANNER_ID  Banner ID.
CHECK_RIGHTS Pass "Y" to check the current user's permissions for the deletion, or "N" to delete a banner unconditionally.

Return Value

The method returns true on success or false otherwise.