# How to remove "Elastic Cloud agent policy" elastic agents that are Offline in Fleet

**URL:** <https://discuss.elastic.co/t/how-to-remove-elastic-cloud-agent-policy-elastic-agents-that-are-offline-in-fleet/313987>\
**Category:** Beats\
**Tags:** fleet\
**Created:** [September 8, 2022, 11:19am UTC](https://discuss.elastic.co/t/how-to-remove-elastic-cloud-agent-policy-elastic-agents-that-are-offline-in-fleet/313987 "2022-09-08T11:19:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dabo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dabo/32/95229_2.png) [@dabo](https://discuss.elastic.co/u/dabo)\
**Post date:** [September 8, 2022, 11:19am UTC](https://discuss.elastic.co/t/how-to-remove-elastic-cloud-agent-policy-elastic-agents-that-are-offline-in-fleet/313987/1 "2022-09-08T11:19:15Z")

</div>

Hi,

We are using Elastic Cloud 8.3.3 version now and currently have 264 offline elastic agent assigned to this [Elastic Cloud agent policy]. Are they still only removable via API?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/b/8b3a48fa8b067b455d5a3e996cbc4ecafcafbe25.png)

The number of agents is increasing everyday as you can see from the screenshot.

Kind regards,  
Dane

---

<div class="post-metadata">

**Author:** ![Edoardo\_Tenani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/edoardo_tenani/32/94302_2.png) [@Edoardo\_Tenani](https://discuss.elastic.co/u/Edoardo_Tenani)\
**Post date:** [September 9, 2022, 3:07pm UTC](https://discuss.elastic.co/t/how-to-remove-elastic-cloud-agent-policy-elastic-agents-that-are-offline-in-fleet/313987/2 "2022-09-09T15:07:37Z")

</div>

Hello @dabo,

the only way is through the APIs, as you mentioned. Also I asked internally and that behaviour is a bug that should have been fixed in 8.4.0, so I would suggest to update before removing offline agents.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 7, 2022, 5:08pm UTC](https://discuss.elastic.co/t/how-to-remove-elastic-cloud-agent-policy-elastic-agents-that-are-offline-in-fleet/313987/3 "2022-10-07T17:08:11Z")

</div>

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