remove nginx and related files code example Example: uninstall nginx sudo apt-get purge nginx nginx-common