How to remove nginx from ubuntu?

In this article let’s discuss about How to remove nginx from ubuntu?. Let’s go through the following methods without any delay.

Method 1:

sudo apt-get remove nginx nginx-common
or
sudo apt-get purge nginx nginx-common

sudo apt-get autoremove

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

sudo apt-get purge nginx nginx-common

Hope the above solution works.

Realted Posts : How to disable ipv6 in debian?