How to completely uninstall nginx
sudo systemctl stop nginx
sudo apt purge nginx
sudo apt autoremove
sudo rm -rf /etc/nginx
sudo rm -rf /var/log/nginx
sudo systemctl status nginx
sudo systemctl stop nginx
sudo apt purge nginx
sudo apt autoremove
sudo rm -rf /etc/nginx
sudo rm -rf /var/log/nginx
sudo systemctl status nginx