restoresettings
the project evolved into https://sourceforge.net/projects/dirreset/
...The main idea is to prepare an archive with reference copy of settings and to use this script for replacing changes settings with archived. Clearing DE cache also provided. Script was tested a couple years ago on XFCE and works every day last 5 years on KDE (Plasma), including in recently released Debian 10.