How to remove NGINX from Ubuntu - LinuxConfig.org

In this guide, we'll be going over the step by step instructions to remove NGINX web server and reverse proxy server from Ubuntu Linux. Ubuntu offers us two options for uninstalling the software, either "remove" or "purge." Read on to learn the difference and find out how to perform either function.


This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-remove-nginx-from-ubuntu

On my ubuntu 18.04, I suggest

sudo apt remove nginx nginx-common

‘apt list --installed | grep nginx’ initially gave me 7 matches and removing ‘nginx’ only removed one. Adding ‘nginx-common’ did remove the other 6.