How to uninstall Apache with command line

tcardoso picture tcardoso · Aug 26, 2013 · Viewed 99k times · Source

So I'm trying to find a command to uninstall apache from windows that I have installed earlier with an NSIS script.

Basically apache is part of a package of aplications we use for our program, and when uninstalling our program we uninstall them all. Already working for postgres, java and ruby, but I'm not finding any command for apache.

I tried the wmic command, but it required user to confirm the action. There isn't any httpd uninstall command?

httpd -k uninstall 

simply removes the service.

Thanks

Answer

Flavio Salas picture Flavio Salas · Nov 6, 2016
sc delete Apache2.4

Remove service in windows