Delete
bool CIBlockElement::Delete( int ID );
The method deletes an element from the information block.
Parameters
Parameter | Description |
---|---|
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(); } ?>
© «Bitrix24», 2001-2024