I'm using a QGIS project as template for other projects. This template has got around 5000 rows. Because I do several updates to the file, it's getting larger and more complex by the time. I know, that some plugins leave there codes in the file, even if they are not installed to QGIS anymore. I would like to get rid of that residual codes because they slow down the project load time and could cause errors.
Is there a way to automatically clean up the QGIS-project-file? I'm looking for something similar to the "SVG-Cleaner" whit which you can clean up the XML-Code of a SVG.
Until now I was randomly recreating the project by copy and pasting the "good" stiles and codes from one QGIS window with the old project to another window with the new project.