Tuesday 12 August 2014

How to Uninstall Mac Server on OS X Maverick

I been play with the OS X Server application for a while trying to setup a server environment at home for development use. It is super easy to install the server, however, there isn't a guide of how to uninstall the server.

I was constantly changing the hostname and testing OpenLDAP to setup single sign on environment and eventually some services refused to start. So I decided to re-install the server app and re-configure it from scratch.

After digging google for a while I don't find any place clearly gives you the exact steps to uninstall it - unfortunately.

So I document it here to save your time, here we go:


1. Launch the Server app and connect to your OS X Server and stop all services.

2. Delete the data folder - /Library/Server

3. Delete configuration files:
/Library/Preferences/com.apple.serverd.plist
/Library/Preferences/com.apple.servermgr_accounts.plist
/Library/Preferences/com.apple.servermgrd.plist

4. delete logs from /var/log directory

5. If you don't need the server app any more, delete it from Applications folder. If you want to reconfigure the Server from scratch then you can launch the Server app now to reconfigure a brand new server environment.