DeleteFile
CPosting::DeleteFile( int ID, int file_id = false );
Method deletes a single or all message post attachments. Static method.
Parameters
Parameter | Description | Available from version |
---|---|---|
ID | Post ID. | |
file_id | Attachment ID. If parameter is not specified or false, deletes all post attachments. |
Return values
None.
Example
if(is_array($FILE_ID)) foreach($FILE_ID as $file_id) CPosting::DeleteFile($ID, $file_id);
© «Bitrix24», 2001-2024