How to uninstall and remove Apache2 on Ubuntu or Debian
www.xmodulo.com › how-to-uninstall-and-removeHere is how you remove Apache2 cleanly on Ubuntu and Debian. The first step is to stop any running instance of Apache2, because Apache2 will not be properly removed while it is running. $ sudo service apache2 stop Then uninstall Apache2 and its dependent packages. Use purge option instead of remove option with apt-get command. The former option will remove dependent packages, as well as any configuration files created by them.