purge and reinstall nginx code example Example: uninstall nginx sudo apt-get purge nginx nginx-common