Uninstall the Database Agent as a Service
To uninstall the database agent service, run the following command as an administrator:
cscript <db_agent_home>\UninstallService.vbsFor example:
cscript C:\db-agent\UninstallService.vbsTo uninstall the database agent service if you have started using a service name, run the following command as an administrator:
cscript UninstallService.vbs servicename=<name_of_the_service>