'Deletes the specified VM Image from the image repository that is
associated with the specified subscription.
vm_image_name:
The name of the image.
delete_vhd:
Deletes the underlying vhd blob in Azure storage.'

def delete_vm_image(self, vm_image_name, delete_vhd=False):

    _validate_not_none('vm_image_name', vm_image_name)
    path = self._get_vm_image_path(vm_image_name)
    if delete_vhd:
        path += '?comp=media'
    return self._perform_delete(path, async=True)
