Uninstall a projectΒΆ
Uninstalling a Genropy project or the framework as a whole is extremely simple: it is in fact sufficient to delete the project folder from genropy_projects
or the genropy
folder where the framework was installed, and it will eventually be possible to repeat from head the installation procedure or the clone of the single project.
However, there are some precautions to take when uninstalling an instance in a production environment .
In this type of environment, in fact, the gnrdeploybuilder will have instructed Nginx on a whole series of instructions, which we will therefore have to remove in order to prevent background processes from continue to use resources trying to start tasks or procedures related to these instances.
After having deleted the project folder that we want to uninstall, we will then have to delete the Nginx configuration file which will be found in the /etc/nginx/sites-enabled
folder.
Once this is done, we will then have to go to .gnr
and delete all the lines relating to the project from the two supervisord.py
files

and supervisord.conf

Once these two measures have been completed, if you had installed a certificate with Certbot it is also advisable to re-execute the command:
sudo certbot --nginx
To regenerate the list of available certificates, this is to avoid errors in the renewal procedure of the other certificates.
Once this is done, the machine will have been completely cleaned of uninstalled projects.