@Leland Wallace answer is completely correct to "remove" macOS Server but here is how to completely remove everything related to macOS Server.
Note: This will remove all data relevant, including, but not limited to, Web Site files, Wiki Files, Configuration Files. This will basically leave your computer as it was before you installed macOS Server.
Right click on the Server Application and click "Show Package Contents"
Navigate to
/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backenbackend
Double click on
wipeDB.sh
. This should open it in terminal.Enter your admin password (or root password if setup)
Alternately: in terminal:
sudo ./Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/wipeDB.sh
Then follow @Leland Wallace answer and remove the Server application