# Remove OneAgent from Windows - Reboot necessary?

**URL:** <https://community.dynatrace.com/t/remove-oneagent-from-windows-reboot-necessary/39244>\
**Category:** Open Q&A\
**Tags:** installation, oneagent\
**Created:** [April 11, 2023, 9:58am UTC](https://community.dynatrace.com/t/remove-oneagent-from-windows-reboot-necessary/39244 "2023-04-11T09:58:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Theodore\_x86](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/theodore_x86/32/17620_2.png) [@Theodore\_x86](https://community.dynatrace.com/u/Theodore_x86)\
**Post date:** [April 11, 2023, 9:58am UTC](https://community.dynatrace.com/t/remove-oneagent-from-windows-reboot-necessary/39244/1 "2023-04-11T09:58:13Z")

</div>

Hello.

I want to remove the OneAgent from a couple of Windows Servers. Reading the documentation:

> **[Uninstall Dynatrace OneAgent on Windows](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/installation-and-operation/windows/operation/uninstall-oneagent-on-windows)**
>
> Learn how you can remove Dynatrace OneAgent from your system.

_ **After all OneAgent files have been removed from your system, you’ll need to reboot your machine to remove the agent libraries from memory.** _

It is not clear whether the reboot is needed only in the “control panel” option. Do we also need a reboot in the command line - based procedure? Also what are the “agent libraries from memory exactly”? I suppose they are not the registries installed in regedit…

Thanks.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [April 11, 2023, 12:16pm UTC](https://community.dynatrace.com/t/remove-oneagent-from-windows-reboot-necessary/39244/2 "2023-04-11T12:16:08Z")

</div>

When you uninstall OneAgent, if there are agents running in a .Net application/site, for instance, they will not be removed. You would have to restart the .Net application/site for the agent to go. That’s what I believe "remove the agent libraries from memory. means. I would say that you should be able to do it without a reboot, or at least immediately.

---

<div class="post-metadata">

**Author:** ![Theodore\_x86](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/theodore_x86/32/17620_2.png) [@Theodore\_x86](https://community.dynatrace.com/u/Theodore_x86)\
**Post date:** [April 11, 2023, 2:32pm UTC](https://community.dynatrace.com/t/remove-oneagent-from-windows-reboot-necessary/39244/3 "2023-04-11T14:32:38Z")

</div>

Thank you Antonio. That is my suspision also. However, it is important to clarify why the documentation mentions rebooting the whole server.

BR

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [April 11, 2023, 2:47pm UTC](https://community.dynatrace.com/t/remove-oneagent-from-windows-reboot-necessary/39244/4 "2023-04-11T14:47:58Z")

</div>

[@Theodore\_x86](https://community.dynatrace.com/user/50066),

If you are experiencing difficulties with this one, or for some reason might not be able to do the reboot, you would probably better put in a Support Ticket.

---

<div class="post-metadata">

**Author:** ![Theodore\_x86](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/theodore_x86/32/17620_2.png) [@Theodore\_x86](https://community.dynatrace.com/u/Theodore_x86)\
**Post date:** [April 11, 2023, 2:51pm UTC](https://community.dynatrace.com/t/remove-oneagent-from-windows-reboot-necessary/39244/5 "2023-04-11T14:51:37Z")

</div>

Yes I will do proactively. Thanks again.

---

<div class="post-metadata">

**Author:** ![rgarzon1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rgarzon1/32/11844_2.png) [@rgarzon1](https://community.dynatrace.com/u/rgarzon1)\
**Post date:** [April 11, 2023, 3:19pm UTC](https://community.dynatrace.com/t/remove-oneagent-from-windows-reboot-necessary/39244/6 "2023-04-11T15:19:17Z")

</div>

Hi Theodore

although it is true that in the documentation it says to restart the whole server, it is also valid to restart the processes separately without the need to completely restart the server. it works in 99.99% of the cases or at least it has been for me. i leave you an image of what at some point we reviewed with a client some time ago of how the restarts worked for us.

 ![Main - process Reboot (1).jpg](https://global.discourse-cdn.com/dynatrace/original/2X/7/7ac98cebf370a90c2dbbc0cdae577acebd3c2dcb.jpeg)

---

<div class="post-metadata">

**Author:** ![Theodore\_x86](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/theodore_x86/32/17620_2.png) [@Theodore\_x86](https://community.dynatrace.com/u/Theodore_x86)\
**Post date:** [April 11, 2023, 3:29pm UTC](https://community.dynatrace.com/t/remove-oneagent-from-windows-reboot-necessary/39244/7 "2023-04-11T15:29:11Z")

</div>

Thanks for the feedback!
