Remove an agent from launchd
The vast majority of Mac users won’t need to manually tweak launchd and launchctl, but there are times when you uninstall or stop using an app in Mac OS X and a service agent continues to needlessly load in launchd. This is annoying, but these rogue agents are easy to remove via the command line, so launch Terminal and away we go.
To remove a service from launchd, use the following syntax with the launchctl command:
launchctl remove name
For example, if I want to remove a service named “com.annoying.service” the syntax would be:
launchctl remove com.annoying.service
You may need to prefix the command with sudo in order to remove the service, in this case the command would be:
sudo launchctl remove com.annoying.service
You can also check what’s loaded into launchd by using:
This command lists all agents and jobs loaded into launchd, allowing you to easily manipulate the agents that are running.