Uninstall the macOS server

Remove launchd jobs and installed files; review retained settings.

On this page

Before removing the server

Notify connected users and save work. The uninstaller ends remote connections. Retain any logs needed for diagnosis before running it, because launchd startup logs are removed.

Use the uninstall-tmdserver.sh script from the extracted server package. The older web page misspells it as unsinstall-tmdserver.sh; that is not the installed package's filename.

Run the uninstaller

From the extracted TmdServer package directory:

sudo bash ./uninstall-tmdserver.sh

The script unloads the system LaunchDaemon, unloads and removes installed per-user com.tmdagent LaunchAgents, terminates agents, and removes /Library/TMDServer. It also removes /var/log/tmdserver.log and the per-user tmdagent-launchd.log files.

Review privacy entries

In System Settings → Privacy & Security, remove the obsolete tmdagent entry from Accessibility and Screen & System Audio Recording if the software is being removed permanently. Do not change unrelated applications' permissions.

Data retained after uninstall

The current script does not remove /etc/tmd/server, the session registry in /Library/Application Support/TMD, or timestamped logs in the user's application-support directory. Reinstalling can therefore reuse old configuration and console ownership.

Keep that data for reinstallation or archive it under your retention policy. When intentionally changing the owner on reinstallation, reconcile the saved console definition using tmdtool and the automatic creation setting.

Verify removal

sudo launchctl print system/com.tmdserver
launchctl print gui/$(id -u)/com.tmdagent

After a successful removal, these jobs should no longer be found. To install again, follow Install the macOS server from the intended owner's GUI account.