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.