How to stop an app from running completely on OS X? Few days back I installed Team Viewer on my MacBook Pro running OS X 10.9.4 Mavericks. It worked fine at the first. Now the app is stuck on the dock saying "Application not responding" and it's running indefinitely.

What I've tried to stop the app from running


Force Quit from Dock
Killing from Activity Monitor
Tried to restart the mac and the app launched automatically even though it's not set to launch during startup under system preferences.


There are two processes using the CPU which when I try to force quit gets automatically relaunched. 



How do i stop the app or how do I stop these processes from running ever again?
It is probably a launchctl process that is restarting.

To see all loaded launch agents, in Terminal: 

launchctl list


To remove one:

sudo launchctl remove label_of_program_to_remove


where, label_of_program_to_remove is found in the preceding list.  Note that you have to run the sudo command from an administrator account; or, su to an administrator account first.