Remove all the bits that still try to write to the configuration file