deleteImage (MediaCollection)

format

void deleteImage(String path MediaCollection mCollection) throws Exception

description

Removes the image from the specified MediaCollection. Use this method if you want to delete an image from a MediaCollection other than the current MediaCollection.

parameters

path - the full path and filename of the image to be removed

 

mCollection - the MediaCollection from which you want to delete the image

returns

nothing (void)

throws

deleteImage() throws an Exception if path does not exist, if it is not a file, if it is not a valid image type, or if mCollection does not exist. Additionally, if an error occurs while the file is being removed from the MediaCollection, delete() throws that EveException as a string in an Exception.