Bitrix Site Manager

CGroup::Delete

mixed
CGroup::Delete(
 int id
)

The method Delete removes group. Returns an instance of CDBResult on success, or false otherwise. 

Parameters

ParameterDescription
id Group ID. 

See Also

Example



<?
if(IntVal($del_id)>2)
{
  $del_id = IntVal($del_id);
  $group = new CGroup;
  $DB->StartTransaction();
  if(!$group->Delete($del_id))
  {
    $DB->Rollback();
    $strError.=GetMessage("DELETE_ERROR");
  }
  $DB->Commit();
}
?>