uniinstall nginx

C++
sudo apt-get purge nginx nginx-common

Source

Also in C++: