The WP DELETE PICTURE command deletes the image defined by the imgObj parameter.
If no image exists, the command does nothing.
You want to delete an image using its ID:
C_OBJECT($myPicture)
$myPicture:=WP Get element by ID(myDoc;"Logo")
WP DELETE PICTURE($myPicture)