REM "%OSGEO4W_ROOT%\bin\apache-uninstall.bat"

del "%OSGEO4W_STARTMENU%\Apache\Install Apache Web Service.lnk"
del "%OSGEO4W_STARTMENU%\Apache\Uninstall Apache Web Service.lnk"
del "%OSGEO4W_STARTMENU%\Apache\Start Apache Web Service.lnk"
del "%OSGEO4W_STARTMENU%\Apache\Stop Apache Web Service.lnk"
del "%OSGEO4W_STARTMENU%\Apache\Apache Monitor.lnk"
rd "%OSGEO4W_STARTMENU%\Apache"

del "%OSGEO4W_DESKTOP%\Apache\Install Apache Web Service.lnk"
del "%OSGEO4W_DESKTOP%\Apache\Uninstall Apache Web Service.lnk"
del "%OSGEO4W_DESKTOP%\Apache\Start Apache Web Service.lnk"
del "%OSGEO4W_DESKTOP%\Apache\Stop Apache Web Service.lnk"
del "%OSGEO4W_DESKTOP%\Apache\Apache Monitor.lnk"
rd "%OSGEO4W_DESKTOP%\Apache"

del "%OSGEO4W_ROOT\apps\apache\conf\httpd.conf"

REM stop and uninstall the apache service
call apache-uninstall.bat
exit /b 0
