I'm using the below cmd to unlink nessus agent from the devices. But no result found.
echo "Unlinking Nessus Account"sudo /Library/NessusAgent/run/sbin/nessuscli nessuscli agent unlink
Please help me on this
I think you have the name of the command in there twice. It should be sudo /Library/NessusAgent/run/sbin/nessuscli agent unlink. And you might not need the sudo if you're running the command via Jamf Pro. (Should run as root, I believe.)
If you run into further issues surrounding unlinking and reinstalling the agent, you might check this out if you haven't already:
Nessus UUID Error