# Hard-Removing Elastic Endpoint

**URL:** <https://discuss.elastic.co/t/hard-removing-elastic-endpoint/274102>\
**Category:** Kibana\
**Tags:** fleet\
**Created:** [May 26, 2021, 5:41pm UTC](https://discuss.elastic.co/t/hard-removing-elastic-endpoint/274102 "2021-05-26T17:41:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nemhods](https://avatars.discourse-cdn.com/v4/letter/n/48db29/32.png) [@nemhods](https://discuss.elastic.co/u/nemhods)\
**Post date:** [May 26, 2021, 5:41pm UTC](https://discuss.elastic.co/t/hard-removing-elastic-endpoint/274102/1 "2021-05-26T17:41:02Z")

</div>

Hey,

after an upgrade to 7.13 and the auto-removal of Kibana-builtin Fleet, i'm now cleaning up in order to re-install Elastic Agents.

On Windows Hosts, I'm not able to remove Elastic Endpoint.

- Unenrolling the agent from Fleet didn't work
- I tried `elastic-agent uninstall`, which removed the Agent but left the Elastic Endpoint (even after restart)
- There is no stopping the service. It always says "Access Denied". I tried as BUILTIN\Administrator, and even as NTAUTHORITY\SYSTEM. You can't even alter the service's security descriptor using sc.exe and NTAUTHORITY\System.

I mean, congratulations on the tamper protection 😉 but how do I get back control over my system now and properly remove Elastic Endpoint?

---

<div class="post-metadata">

**Author:** ![nemhods](https://avatars.discourse-cdn.com/v4/letter/n/48db29/32.png) [@nemhods](https://discuss.elastic.co/u/nemhods)\
**Post date:** [May 26, 2021, 7:27pm UTC](https://discuss.elastic.co/t/hard-removing-elastic-endpoint/274102/2 "2021-05-26T19:27:42Z")

</div>

I was pointed to:

> **[Configure and install the Elastic Endpoint integration | Elastic Security...](https://www.elastic.co/guide/en/security/current/install-endpoint.html#uninstall-endpoint)**

It works.

```auto
cd %TEMP%
copy "c:\Program Files\Elastic\Endpoint\elastic-endpoint.exe" elastic-endpoint.exe
.\elastic-endpoint.exe uninstall
del .\elastic-endpoint.exe

```

---

<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:** [June 23, 2021, 7:27pm UTC](https://discuss.elastic.co/t/hard-removing-elastic-endpoint/274102/3 "2021-06-23T19:27:48Z")

</div>

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