@Override
public void deleteImage(String idVim, String idImage, String projectId)
throws VimException, PluginException, EntityUnreachableException, IOException,
NotFoundException {
BaseVimInstance vimInstance = vimRepository.findFirstByIdAndProjectId(idVim, projectId);
if (vimInstance == null)
throw new NotFoundException("VIM Instance with ID " + idVim + " not found.");
if (!vimInstance.isActive()) {
throw new EntityUnreachableException(
"VimInstance " + vimInstance.getName() + " is not reachable");
}
vimRepository.deleteImage(idVim, idImage);
refresh(vimInstance, false);
}