public static void cleanUp () {
        ModPack pack = ModPack.getSelectedPack();
        File tempFolder = new File(OSUtils.getCacheStorageLocation(), "ModPacks" + sep + pack.getDir() + sep);
        for (String file : tempFolder.list()) {
            if (!file.equals(pack.getLogoName()) && !file.equals(pack.getImageName()) && !file.equals("version") && !file.equals(pack.getAnimation())) {
                try {
                    if (file.endsWith(".zip")) {
                        Logger.logDebug("retaining modpack file: " + tempFolder + File.separator + file);
                    } else {
                        FTBFileUtils.delete(new File(tempFolder, file));
                    }
                } catch (IOException e) {
                    Logger.logError(e.getMessage(), e);
                }
            }
        }
    }