IT Asset Management allows you to manage and remove agents when needed.
Open the macOS Terminal and run the following commands:
Unload the agent service
** sudo launchctl bootout system /Library/LaunchDaemons/com.mac.agent.plist
Remove the launch daemon configuration
** sudo rm -f /Library/LaunchDaemons/com.mac.agent.plist
Delete agent and scripts
** sudo rm -f /usr/local/bin/system-agent
** sudo rm -f /usr/local/bin/script.sh.enc
** sudo rm -f /usr/local/bin/agent-config.sh
Clear temporary log files
** sudo rm -f /tmp/macagent.out
** sudo rm -f /tmp/macagent.err
Remove the agent from launchctl
** sudo launchctl remove com.mac.agent
