• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/taskfiles.php
  • Класс: CTaskFiles
  • Вызов: CTaskFiles::unregisterTemporaryFiles
static function unregisterTemporaryFiles($arFilesIds)
{
	global $DB;

	if ( ! is_array($arFilesIds) )
		throw new Exception();

	$arIds = array_unique(array_map('intval', $arFilesIds));

	if (is_array($arIds) && count($arIds))
	{
		$DB->Query("DELETE FROM b_tasks_files_temporary 
			WHERE FILE_ID IN (" . implode(', ', $arIds) . ")");
	}
}