Remove macOS Server
You need to be an administrator to remove macOS Server.
When you remove the Server app, the services are turned off but the service data remains in place until manually removed. Open Directory users remain on your Mac and removing Open Directory components isn’t supported. Open Directory remains configured and running even after the app is removed.
Other services and service configuration files remain in place, but inactive. To remove service data and service configuration data, you need to remove the Server support folder. To remove directory user accounts, you remove them from the Users pane before removing the Server app.
Sharing, Remote Login (SSH), and Remote Management (screen sharing) remain configured and running, and can be configured using System Preferences.
If you want to remove local user accounts, delete them from the Users pane of the Server app.
Drag the Server app from the Applications folder to the Trash, then wait for the OS to detect the change.
Delete the following folder and files:
The Server support folder at /Library/Server
The preference files for Server: /Library/Preferences/com.apple.serverd.plist and /Library/Preferences/com.apple.servermgrd.plist
To reveal the support folder and preference files, choose Go > Go to Folder in the Finder, enter the file locations above, then drag the folder or files to the trash.
Restart your Mac, then empty the Trash.