Documentation

Delete

bool
CIBlockType::Delete(
 string ID
);

Deletes the information block type.

Parameters

ParameterDescription
ID Information block type ID.

Return Values

Returns true on success, of false otherwise.

Example


<?
$DB->StartTransaction();
if (!CIBlockType::Delete('catalog'))
{
    $DB->Rollback();
    echo 'Delete error!';
}
$DB->Commit();
?>
© «Bitrix24», 2001-2024
Up