If you remove an agents git definition in admin/agent/viewAgent.action, the definition will return on restart of the agent. It should retain that it was removed.
The state of the agent was confirmed that it was removed by refresh of admin/agent/viewAgent.action as well as viewing the admin/agent/viewCapabilityKey.action?capabilityKey=system.git.executable and admin/viewGlobalAuditLog.action.
There's no way around that apart from removing the files to which these capabilities belong to. You may also try defining them to an empty value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.