To completely uninstall Nginx on Ubuntu (including all config files), you can run the following command:
sudo apt-get purge nginx nginx-common
To completely uninstall Nginx on Ubuntu (including all config files), you can run the following command:
sudo apt-get purge nginx nginx-common