Remove nginx from ubuntu by Option 1: sudo apt-get remove nginx nginx-commonsudo apt-get remove nginx nginx-common Option 2: sudo apt-get purge nginx nginx-common sudo apt-get autoremovesudo apt-get purge nginx nginx-common sudo apt-get autoremove Please follow and like us: