Remove unneeded configs.