Bitrix Site Manager

CForumNew::Delete

bool
Delete(
 int ID
);

The method Delete deletes a specified forum. Before the forum is deleted, the method calls all handlers of the Forum module event OnBeforeForumDelete. If at least one of the handlers returns false, the forum will not be deleted.

Parameters

ParameterDescription
ID The ID of the forum to be deleted.

Return Values

Returns true on success, or false otherwise.

Remarks

  • Before a forum is deleted, you should check whether it can be deleted using CForumNew::CanUserDeleteForum.