I have several *.qgs projects and I want to open each project, add layer, export composer and close this project withot saving. Goto next project and repeat this operations. But I did not find any close() method for QgsProject. How I can close *.qgs without saving? Something like this:
project = QgsProject.instance()
for prjFile in prjFiles:
project.read(QFileInfo(prjFile))
#do something with project
#close project instance without saving and goto next project