if it is for Windows, I think you can use msiexec /x "??SOURCE??" /qn cmd in a BLPackage and deploy it. Please note that BSA supports upgrading the Agent using UAI if you have plans to upgrade the agent.
we dont have any plans to upgrade because, our projecct is went some other vendor. New vendor is planning to use new tools. that's why we want to uninstall the the agents includes RSCD and PATROL