def clean_up():
    'Removes any catalog files that are no longer in use by this client'
    catalog_dir = os.path.join(prefs.pref('ManagedInstallDir'), 'catalogs')
    for item in os.listdir(catalog_dir):
        if (item not in _CATALOG):
            os.unlink(os.path.join(catalog_dir, item))
Removes any catalog files that are no longer in use by this client
def clean_up():
    
    catalog_dir = os.path.join(prefs.pref('ManagedInstallDir'), 'catalogs')
    for item in os.listdir(catalog_dir):
        if (item not in _CATALOG):
            os.unlink(os.path.join(catalog_dir, item))