Initially you may have to delete the agent from the Scheduler by running "delete_machine" attribute.
CAUAJM_I_50227 Deleting machine: test_agent
CAUAJM_I_50202 Delete was successful!
CAUAJM_I_52301 Exit Code = 0
Then logon to the "System Agent" under Agent install location by default it would be in "/opt/CA/WorkloadAutomationAE/SystemAgent/WA_AGENT". Remove below parameters in "agentparm.txt" file.
Note # Where "N" represents the number of "Scheduler Manager" connected.
Environment variables txt file, which would be under below location.