# Agents in Fleet Server going offline and inactive and becoming healthy any reason and how to delete the offline Agents from the Fleet server

**URL:** https://discuss.elastic.co/t/agents-in-fleet-server-going-offline-and-inactive-and-becoming-healthy-any-reason-and-how-to-delete-the-offline-agents-from-the-fleet-server/357983
**Category:** Elastic Agent
**Tags:** fleet
**Created:** [April 23, 2024, 6:44am UTC](https://discuss.elastic.co/t/agents-in-fleet-server-going-offline-and-inactive-and-becoming-healthy-any-reason-and-how-to-delete-the-offline-agents-from-the-fleet-server/357983 "2024-04-23T06:44:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nkreddyp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkreddyp/32/114622_2.png) [@nkreddyp](https://discuss.elastic.co/u/nkreddyp)
#### Post date: [April 23, 2024, 6:44am UTC](https://discuss.elastic.co/t/agents-in-fleet-server-going-offline-and-inactive-and-becoming-healthy-any-reason-and-how-to-delete-the-offline-agents-from-the-fleet-server/357983/1 "2024-04-23T06:44:29Z")

</div>

we have integrated Linux and Windows hosts to Fleet server facing issue especially with windows agents its going offline very often and becoming healthy again i have checked the logs however i couldn't see any about this does any one face this issue and any fix for it ? And the agent count is showing more in fleet so is there any way to remove the offline unhealthy and inactive agents from the fleet server?

Regards,  
Naresh Kumar Reddy

---

<div class="post-metadata">

### Author: ![Julia\_Bardi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julia_bardi/32/79463_2.png) [@Julia\_Bardi](https://discuss.elastic.co/u/Julia_Bardi)
#### Post date: [May 21, 2024, 11:09am UTC](https://discuss.elastic.co/t/agents-in-fleet-server-going-offline-and-inactive-and-becoming-healthy-any-reason-and-how-to-delete-the-offline-agents-from-the-fleet-server/357983/2 "2024-05-21T11:09:11Z")

</div>

Hi Naresh,

Agents go offline if they don't check-in for 5 minutes. Is it possible that these agents are not checking in regularly?  
Offline and inactive agents can be unenrolled to be removed from Fleet; [Unenroll Elastic Agents | Fleet and Elastic Agent Guide [master] | Elastic](https://www.elastic.co/guide/en/fleet/master/unenroll-elastic-agent.html)
