def cleanUpCatalogs():
    catalog_dir = os.path.join(munkicommon.pref('ManagedInstallDir'),
                               'catalogs')
    for item in os.listdir(catalog_dir):
        if item not in CATALOG.keys():
            os.unlink(os.path.join(catalog_dir, item))
Removes any catalog files that are no longer in use by this client
dataset/ETHPy150Open munki/munki/code/client/munkilib/updatecheck.py/cleanUpCatalogs