Skip to main content
Version: Next

WP DELETE PICTURE

WP DELETE PICTURE ( imgObj : Object )

ParameterTypeDescription
imgObjObject→Image object (inline or anchored)

Description​

The WP DELETE PICTURE command deletes the image defined by the imgObj parameter.

If no image exists, the command does nothing.

Example​

You want to delete an image using its ID:

 var $myPicture : Object
 
  // get image  
 $myPicture:=WP Get element by ID(myDoc;"Logo")
 
  // Delete the image
 WP DELETE PICTURE($myPicture)

See also​

Handling pictures
WP Add picture