> ## Documentation Index
> Fetch the complete documentation index at: https://www.1password.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Uninstall 1Password CLI

<Warning>
  Make sure you have access to your Secret Key and account password before removing 1Password account information from your device.
</Warning>

## Step 1: Remove your 1Password account information

Your 1Password CLI configuration file contains account details for accounts you've signed in to on the command line using your account password and Secret Key. It does not contain information for accounts you've signed in to using the 1Password desktop app integration.

Your config file can be found in one of the following locations: `~/.op/config`, `~/.config/op/config`, or `~/.config/.op/config`.

To remove all account information from your config file:

```shell theme={null}
op account forget --all
```

## Step 2: Uninstall 1Password CLI

<Tabs groupId="operating-systems">
  <Tab title="Mac">
    <Tabs groupId="mac-distro" label="Mac">
      <Tab title="homebrew">
        To uninstall 1Password CLI with homebrew:

        ```shell theme={null}
        brew uninstall 1password-cli
        ```
      </Tab>

      <Tab title="Manual">
        To manually uninstall 1Password CLI, run:

        ```shell theme={null}
        rm /usr/local/bin/op
        ```
      </Tab>
    </Tabs>
  </Tab>

  <Tab title="Windows">
    <Tabs groupId="windows-distro">
      <Tab title="Scoop">
        To uninstall 1Password CLI with Scoop:

        ```powershell theme={null}
        scoop uninstall 1password-cli
        ```
      </Tab>

      <Tab title="winget">
        To uninstall 1Password CLI with winget:

        ```powershell theme={null}
        winget uninstall 1password-cli
        ```
      </Tab>

      <Tab title="Manual">
        To uninstall 1Password CLI on a Windows PC:

        1. Open Powershell **as an administrator**.
        2. Run the following command:

        ```shell theme={null}
        Remove-Item -Recurse -Force "C:\Program Files\1Password CLI"
        ```
      </Tab>
    </Tabs>
  </Tab>

  <Tab title="Linux">
    To uninstall 1Password CLI on Linux, run:

    ```shell theme={null}
    rm /usr/local/bin/op
    ```
  </Tab>
</Tabs>

The 1Password CLI directory and all of its contents will be deleted.
