Uninstall a Tenable Agent on macOS
You can uninstall an agent on macOS by deleting the related agent directories and disabling the agent service.
Before you begin:
- Unlink the agent from the manager.
To uninstall Tenable Agent on macOS:
-
Remove the Tenable Agent directories. From a command prompt, type the following commands:
- $ sudo rm -rf /Library/NessusAgent
- $ sudo rm /Library/LaunchDaemons/com.tenablesecurity.nessusagent.plist
-
$ sudo rm -r "/Library/PreferencePanes/Nessus Agent Preferences.prefPane"
Note: To completely remove Tenable Agent from the system, you must manually delete the agent filesystem after running the remove command.
-
Disable the Tenable Agent service:
-
From a command prompt, type the following command:
$ sudo launchctl remove com.tenablesecurity.nessusagent
-
If prompted, provide the administrator password.
-
What to do next:
-
If you plan on reinstalling the Tenable Agent on the system, see the knowledge base article on how to avoid linking errors.