public static void deleteSkin(String filename) {
        Path skinPath;
        if (!filename.endsWith(Constants.SKINFILE_SUFFIX)) {
            skinPath = Constants.PROGRAM_SKINS_PATH.resolve(filename + Constants.SKINFILE_SUFFIX);
        } else {
            skinPath = Constants.PROGRAM_SKINS_PATH.resolve(filename);
        }

        if (model.deleteSkin(skinPath)) {
            chooser.updateList();
        } else {
            showProblemMessage("Main.deleteSkin: Skin was not deleted!");
        }
    }