Initially you may have to delete the agent from the Scheduler by running "delete_machine" attribute.
[
[email protected] ~]$ jil
jil>>1> delete_machine:test_agent
jil>>2> exit
______________________________________________________________________________
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.
communication.manageraddress_N
communication.managerid_N
communication.managerport_N
oscomponent.environment.variable_manager_<Instance name>_SCH
Note # Where "N" represents the number of "Scheduler Manager" connected.
Environment variables txt file, which would be under below location.
/opt/CA/WorkloadAutomationAE/SystemAgent/WA_AGENT/profiles/<instancename>.txt