Export -> Clean -> Import+overwrite

We would like to do a configuration clean up. Basically the following process:

  • Export configuration: export file=config.cfg
  • We review and remove anything that is unnecessary
  • We import the clean configuration, overwriting anything that was there

There is a lot of confusing of contradictory information about this.
Is there any trusted and clean list of steps that can ensure this process is very reliable?