Remove write config file function