Bitrix Site Manager

CIBlock::Delete

bool
CIBlock::Delete(
 int ID
);

The method deletes an information block.

Parameters

ParameterDescription
ID Information block ID.

Return Values

Returns true on success, or false otherwise.

Example


<?
if($USER->IsAdmin())
{
    $DB->StartTransaction();
    if(!CIBlock::Delete($iblock_id))
    {
        $strWarning .= GetMessage("IBLOCK_DELETE_ERROR");
        $DB->Rollback();
    }
    else
        $DB->Commit();
}
?>