What can we improve?

Documentation

(Edit)

Translation is in progress...
Not all topics are available at the moment and content links may be broken.

IPS_DeleteMedia

boolean IPS_DeleteMedia (integer $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);
Deutsche Webseite verfügbar
Go to cart
Any questions?