To uninstall an agent, delete the agent and the /opsramp/agent directory:

pkg delete opsramp-agent
rmdir /opt/opsramp/agent

See the /tmp/opsramp-agent_uninstall.log file for uninstall progress.