public function onAfterMessageDelete($ID, $arPost) { if ($arPost['FORUM_ID'] == $this->forumId && $arPost['PARAM2'] == $this->arEntity['ID']) { CMeeting::DeleteFilesBySrc($arPost['ID']); } }