Works in a similar manner as DeleteEntity with the exception of optional “class” in the list of parameters. In the case of DeleteImage, the class is implicit. It goes a step further and also deletes associated image files.
[optional] ref: Note: its not “_ref”. If you want to use results of a previous image search result (FindImage), you can use this parameter. It takes precedence over constraints.
For more information, see DeleteEntity.