CFile::Delete( int id )
The method Delete removes a file from the file registrar table (b_file) and deletes it from the disk.
Parameter | Description |
---|---|
id | Numeric ID of the file. |
<? // delete the form image $arFilter = array("ID" => 1, "ID_EXACT_MATCH" => "Y"); $rsForm = CForm::GetList($by, $order, $arFilter, $is_filtered); if ($arForm = $rsForm->Fetch()) { if (intval($arForm["IMAGE_ID"])>0) CFile::Delete($arForm["IMAGE_ID"]); } ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |