def clean(self, config_file): self._setup_parser(config_file) if is_in_image_store(self._result()): logging.info(("Removing '{}' from image store." ).format(self._result())) delete_image(self._result()) print_success("Removed {} from image store.".format(self._result()))
def _clean(self): if is_in_image_store(self._result()): logging.info(("Removing '{}' from image store." ).format(self._result())) delete_image(self._result()) print_success("Removed {} from image store.".format(self._result())) if self.clean_depth > 0: Stop().clean_recursive(self.config.get_base_config_file(), self.clean_depth - 1)