remove config based on env