sudo apt-get remove nginx nginx-common # Removes all but config files. sudo apt-get purge nginx nginx-common # Removes everything. sudo apt-get remove "php*" sudo dpkg -l | grep mongo sudo apt-get remove mongodb-* --purge