Documentation
IPS_DeleteMedia
boolean IPS_DeleteMedia (int $MediaID, boolean $DeleteFile)
Parameters
MediaID | ID of the media object to be deleted |
DeleteFile | TRUE if the file should be deleted, FALSE if the file should be moved to the 'deleted' folder. |
Returns
If the command succeeds, it returns TRUE, otherwise FALSE.
Description
The command removes the media object with ID MediaID from the media pool.
The media object can only be deleted if it has no children.
Example
IPS_DeleteMedia($MediaID, true);