I want to erase the memory register that stores the variables that are created while running python code (in QGIS). I tried using
qgs.exitQgis() based on pyqgis manual. But I get an error saying
NameError: name 'Qgs' is not defined.
Edit: Realized that
qgs.exitQgis() is not usable for my purpose since my aim is not to have a stand alone pycode that uses QGIS library, moreover I noticed that running the command
qgs = QgsApplication(, False), in order to define the variable
qgs is making my QGIS2.14 interface unresponsive!
Apparently, I need to have some QGIS independent way to clear memory register.