uninstall nginx ubuntu code example
Example 1: remove nginx from ubuntu
sudo apt-get remove nginx nginx-common
or
sudo apt-get purge nginx nginx-common
sudo apt-get autoremove
Example 2: uninstall nginx
sudo apt-get purge nginx nginx-common
Example 3: ubuntu install nginx
sudo apt update
sudo apt install nginx