# Deleting Agent Permanently from Cosnole

**URL:** <https://discuss.elastic.co/t/deleting-agent-permanently-from-cosnole/354367>\
**Category:** Kibana\
**Created:** [February 28, 2024, 3:41pm UTC](https://discuss.elastic.co/t/deleting-agent-permanently-from-cosnole/354367 "2024-02-28T15:41:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nouman\_Ahmed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nouman_ahmed/32/132033_2.png) [@Nouman\_Ahmed](https://discuss.elastic.co/u/Nouman_Ahmed)\
**Post date:** [February 28, 2024, 3:41pm UTC](https://discuss.elastic.co/t/deleting-agent-permanently-from-cosnole/354367/1 "2024-02-28T15:41:40Z")

</div>

How can i permanently delete agent from fleet? I can see its showing offline. I have uninstalled it by navigating to /usr/bin and running "./elastic-agent uninstall" command.

How can i delete it so it no longer shows in fleet.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 28, 2024, 4:03pm UTC](https://discuss.elastic.co/t/deleting-agent-permanently-from-cosnole/354367/2 "2024-02-28T16:03:55Z")

</div>

You need to _unenroll_ the agent from the Fleet UI, since you already uninstalled it, you need to check the box to remove them immediately.

---

<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:** [March 27, 2024, 4:04pm UTC](https://discuss.elastic.co/t/deleting-agent-permanently-from-cosnole/354367/3 "2024-03-27T16:04:45Z")

</div>

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