> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/realmjoin-agent/uninstall.md).

# Uninstalling the Agent

Remove the RealmJoin Agent from a single Windows device and, if needed, install it again.

The RealmJoin Agent can be removed from a single device with its built-in uninstaller. To remove RealmJoin from your whole tenant, see [Offboarding](https://docs.realmjoin.com/troubleshooting-and-faq/offboarding.md) instead.

{% hint style="warning" %}
Uninstalling the Agent is **not a general troubleshooting step**. Only do it when you actually want to remove the Agent from a device, or when our support asks you to.
{% endhint %}

## Uninstall

1. If the Agent is deployed through Intune, remove the device from the assignment of the **RealmJoin Agent (Device)** package first. Otherwise Intune installs the Agent again on its next check-in.
2. Run the uninstaller from an elevated command prompt:

   ```
   "C:\Program Files\RealmJoin\RealmJoin.exe" -uninstall
   ```
3. Restart the device. The files in `C:\Program Files\RealmJoin` are removed during the restart.

Uninstalling removes only the Agent itself. Applications installed through RealmJoin, their package state and the RealmJoin configuration stay on the device.

## Install again

If you need to install the Agent again, for example on request of our support:

1. Uninstall the Agent as described above, but keep the Intune assignment in place.
2. Restart the device. Until then, `RealmJoin.exe` is still present and Intune considers the Agent installed.
3. Intune installs the Agent again on its next check-in. Without Intune, run the installer manually as described in [Deploying the Agent](https://docs.realmjoin.com/realmjoin-agent/installation.md#interactive-installation-via-command-line).

Because packages and configuration are kept, applications are not reinstalled and the device continues where it left off.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.realmjoin.com/realmjoin-agent/uninstall.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
