# 1Password CLIをアンインストールする

### 1Password CLIをアンインストールする <a href="#mwg9hulr71fk" id="mwg9hulr71fk"></a>

⚠️ 注意

デバイスから1Passwordアカウント情報を削除する前に、秘密鍵とアカウントのパスワードにアクセスできることを確認してください。

### ステップ1：1Passwordアカウントの情報を削除する <a href="#l1kab2h2s1w2" id="l1kab2h2s1w2"></a>

1Password CLIも設定ファイルには、各アカウントのパスワードと秘密鍵を使ってコマンドラインでサインインしたアカウントの詳細が含まれています。1Passwordデスクトップアプリ統合を使ってサインインしたアカウントの情報は含まれていません。<br>

設定ファイルは、

\~/.op/config、\
\~/.config/op/config、\
\~/.config/.op/config

のいずれかの場所にあります。<br>

設定ファイルから全アカウント情報を削除するには次のようにします。

$ op account forget --all

### ステップ2：1Password CLIをアンインストールする <a href="#id-13s4rtdyd5z" id="id-13s4rtdyd5z"></a>

**Macの場合**

* **Homebrewを使う場合**

Homebrew を使って1Password CLIをアンインストールするには次のように入力してください。

$ brew uninstall 1password-cli

* **手動の場合**

1Password CLIを手動でアンインストールするには次のコマンドを実行します。

$ rm /usr/local/bin/op

**Windowsの場合**

* **Scoopを使う場合**

Scoopを使って1Password CLI をアンインストールするには次のように入力してください。

PS C : \\> scoop uninstall 1password-cli

* **Wingetを使う場合**

wingetを使って1Password CLIをアンインストールするには次のように入力してください。

PS C : \\> winget uninstall 1password-cli

* **手動の場合**

Windows PC から 1Password CLI をアンインストールするには:

1. 管理者としてPowershell を開きます。
2. 次のコマンドを実行します。

$ Remove-Item -Recurse -Force "C:\Program Files\1Password CLI"

**Linuxの場合**

Linux で 1Password CLI をアンインストールするには、次のコマンドを実行します。

$ rm /usr/local/bin/op

1Password CLIディレクトリーとその全コンテンツが削除されます。


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.dxable.com/1password/uninstall-1password-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
