Bitrix Site Manager

CIBlockElement::Delete

bool
CIBlockElement::Delete(
 int ID
);

The method deletes an element from the information block.

Parameters

ParameterDescription
ID Element ID.

Return Values

Returns true on success, or false otherwise.

Example


<?
if(CIBlock::GetPermission($IBLOCK_ID)>='W')
{
    $DB->StartTransaction();
    if(!CIBlockElement::Delete($ELEMENT_ID))
    {
        $strWarning .= 'Error!';
        $DB->Rollback();
    }
    else
        $DB->Commit();
}
?>