> 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/ja/realmjoin-agent/uninstall.md).

# エージェントのアンインストール

単一の Windows デバイスから RealmJoin エージェントを削除し、必要であれば再度インストールします。

RealmJoin Agent は、組み込みのアンインストーラーを使って単一のデバイスから削除できます。Tenant 全体から RealmJoin を削除する方法については、 [オフボーディング](https://docs.realmjoin.com/ja/toraburushtinguto-faq/offboarding.md) 代わりに。

{% hint style="warning" %}
Agent のアンインストールは **一般的なトラブルシューティング手順ではありません**。Agent をデバイスから実際に削除したい場合、またはサポートから依頼された場合にのみ実行してください。
{% endhint %}

## アンインストール

1. Agent が Intune を通じて展開されている場合は、デバイスを次の割り当てから削除してください: **RealmJoin Agent (デバイス)** パッケージを先に削除してください。さもないと、Intune は次回のチェックイン時に Agent を再度インストールします。
2. 昇格したコマンド プロンプトからアンインストーラーを実行してください:

   ```
   "C:\Program Files\RealmJoin\RealmJoin.exe" -uninstall
   ```
3. デバイスを再起動してください。次の場所のファイルは `C:\Program Files\RealmJoin` 再起動中に削除されます。

アンインストールで削除されるのは Agent 自体のみです。RealmJoin を通じてインストールされたアプリケーション、それらのパッケージ状態、および RealmJoin の構成はデバイスに残ります。

## 再インストール

Agent を再度インストールする必要がある場合、たとえばサポートからの依頼があった場合は:

1. 上記のとおり Agent をアンインストールしますが、Intune の割り当てはそのままにしてください。
2. デバイスを再起動してください。それまでは、 `RealmJoin.exe` はまだ存在しており、Intune は Agent がインストール済みだと見なします。
3. Intune は次回のチェックイン時に Agent を再度インストールします。Intune がない場合は、で説明されているとおりインストーラーを手動で実行してください。 [エージェントの展開](https://docs.realmjoin.com/ja/realmjoin-agent/installation.md#interactive-installation-via-command-line).

パッケージと構成が保持されるため、アプリケーションは再インストールされず、デバイスは中断したところから続行します。


---

# 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/ja/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.
