Bitrix Site Manager

CStatEventType::Delete

bool
CStatEventType::Delete(
 int type_id
)

The method Delete deletes the specified event type and all events of this type.

Parameters

Parameter Description
type_id The event type ID.

Return Values

Returns true on success, or false otherwise.

See Also

Example



<?
$type_id = 1;
if (CStatEventType::Delete($type_id)) 
    echo "Event type #".$type_id." has been deleted.";
?>