Skip to main content
Version: 20 R7 BETA

WP DELETE PICTURE

WP DELETE PICTURE ( imgObj )

ParameterTypeDescription
imgObjObjectImage 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