def METHOD_NAME(self, keep_manifests: bool):
    before = self.core.lgd.get_dir_size()
    logger.debug("Removing app metadata...")
    app_names = set(g.app_name for g in self.core.get_assets(update_assets=False))
    self.core.lgd.clean_metadata(app_names)
    if not keep_manifests:
        logger.debug("Removing manifests...")
        installed = [
            (ig.app_name, ig.version, ig.platform) for ig in self.core.get_installed_list()
        ]
        installed.extend(
            (ig.app_name, ig.version, ig.platform) for ig in self.core.get_installed_dlc_list()
        )
        self.core.lgd.clean_manifests(installed)
    logger.debug("Removing tmp data")
    self.core.lgd.clean_tmp_data()
    after = self.core.lgd.get_dir_size()
    logger.info(
        f"Cleanup complete! Removed {(before - after) / 1024 / 1024:.02f} MiB."
    )
    if (before - after) > 0:
        QMessageBox.information(
            self,
            "Cleanup",
            self.tr("Cleanup complete! Successfully removed {}").format(
                format_size(before - after)
            ),
        )
    else:
        QMessageBox.information(self, "Cleanup", "Nothing to clean")