Problem
Unable to unregister Merge1 Agent.
Error Message
When attempting to unregister the agent using agentconfigurator.exe the following error will be displayed:
Call failed with Status Code 400 (bad request )
Also, events 1000 and 1026 are witnessed in the Application Event logs.
Cause
It is a newly Created Merge1 Agent and has to be deleted before the service is running using Merge1 admin credentials.
Solution
An Agent can be deleted/unregistered as follows:
1. Deleting an Agent from the Agents grid.
- Go to Agent Pools > Default Agent Pool.
- Click the Delete button under Actions and the Agent will be deleted.
2. Unregister an Agent using a command line.
- Use the following command to unregister the Agent:
./agentConfigurator.exe unregister
3. If these methods fail to remove the agent then the service and delete the agent pool needs to be manually removed.
- To manually remove the service, use the following command :
sc delete <service name>
The service name can be obtained from the properties of the service.