remove unused entries in config file