nginx uninstall code example
Example 1: uninstall nginx
sudo apt-get purge nginx nginx-common
Example 2: remove nginx
sudo apt-get remove nginx* --purge
sudo apt-get purge nginx nginx-common
sudo apt-get remove nginx* --purge