The correct procedure to uninstall NoMachine on Mac is to drag and drop the NoMachine icon from Applications to trash, or click on the icon and choose to move it to trash.
As an alternative, if you want to uninstall from command line, it's enough you remove the NoMachine application directory:
$ sudo rm -rf /Applications/NoMachine.app
Only if the unistall procedure didn't complete, please read here.
If the uninstall procedure was not completed because for example a power outgage occurred in the meantime, you can clean up NoMachine files manually:
- Remove the NoMachine.app folder from Applications if it's still present.
- Run the following script:
$ sudo '/Library/Application Support/NoMachine/nxuninstall.sh'
IMPORTANT:
The /Library/Application Support/NoMachine/nxuninstall.sh script is intended to be executed automatically by the system when the NoMachine.app directory is deleted.
Running the script when NoMachine.app is still present will not perform any action, it's necessary to remove the NoMachine.app before.