def delete_images(self): for host in self.service.get_hosts(): dp = DeployInstance(host.uuid, self.service.uuid) dp.delete_images()