And once you have returned to this 'default' status by detecting the whole number of files & settings... it may be a good idea to create a new folder named *Backups* and maintain a set of these precious files to revert back to _clean settings_ if you should ever need to again. 
You may also want to try the self_archiving (if you have those, btw) install files made upon first SD downloads... everything is there for you to inspect and/or decide to switch over. The normal SDC files are indirect zips (through re-naming) while some files contained in these have the usual extension '.xx_' underlining trick of good'ol dossy extract processing.
I find it pretty useful to have such backing stuff for ships & templates too, btw. Cuz, it's a simple matter of copy_paste to re-create some tedious work on those fleet by a simple process rather than having to do these designs once_twice_three times again & again. Even tricky editing (but appropriate) of some files can ease many pains.