How to Uninstall NGINX From Ubuntu - Linux Nightly
linuxnightly.com › how-to-uninstall-nginx-from-ubuntuJun 02, 2021 · Use one of the following options to remove NGINX from Ubuntu. Note the --auto-remove option also gets rid of related packages in nginx-common that are no longer needed. Option 1. Remove NGINX from the system, while preserving configuration files. $ sudo apt remove --auto-remove nginx Option 2. Purge NGINX from the system, which also deletes configuration files. $ sudo apt remove --auto-remove nginx Option 3.
How to Remove Nginx from Ubuntu - Website for Students
websiteforstudents.com › how-to-remove-nginx-fromJan 24, 2021 · The purge option with apt will delete Nginx and all configuration files from Ubuntu. If you want to complete delete Nginx including configuration files and settings, then use the purge option. The files in /etc/nginx directory will be removed. However, the site content at /var/www will be left alone. Run the commands below to remove Nginx along with its configuration files. sudo apt purge nginx Reinstall Nginx