Elastic Cloud Trial Unable to remove greyed out Agent

Hello,

Playing around with Elastic Cloud trial and noticed I have an Agent in Fleet which I cannot remove:

The offline agent seems to remain unselectable and offline. How can I remove it?

Grtz

Willem

it should disappear after a few hours, i think?

Nope, still there:

I think it's because I removed the apm node at a certain point, only to re-add it later, as I discovered it's also required for fleet?

Under 7.13 unfortunately it can only be removed through an API call ( @nchaulet need your help on this one), in the upcoming 7.14 this agent with automatically disappear after a few minutes.

1 Like

You could use the following call authenticated as a superuser to forceunenroll an agen.

curl 'https://{YOUR_KIBANA}/api/fleet/agents/{AGENT_ID}/unenroll' \
  -H 'kbn-xsrf: xx' \
  -H 'Content-type: application/json' \
  --data-raw '{"force":true,"revoke":true}' \
  --compressed
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.