DeleteMediaItem function deletes a media item with the given media key from the camera.
mediakey: The unique media item key of the item to be deleted.
cameraName: The camera name of the camera on which the function should be executed. If left empty, then the first connected camera is taken.
waitUntilFinished: If true then the function blocks until the camera returns the function result. If false, then the function immediately returns.
bool: DeleteMediaItem(int mediakey[, string cameraName = "", bool waitUntilFinished=true])
var result = DeleteMediaItem(1002323, "GoPro Hero 4"); // deletes the media item with the key 1002323 from the camera. // False is returned if deletion fails, or if the key is invalid.