Skip to content

Commit

Permalink
Add Cypress uninstall instructions (#5995)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 authored Nov 8, 2024
1 parent 65a52be commit 4668dee
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/app/get-started/install-cypress.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ the desired version (ex.
If you have more complex requirements, want to level-up your Cypress workflow or
just need help with troubleshooting, check out our
[Advanced Installation](/app/references/advanced-installation) reference.
You can also find instructions to [uninstall Cypress](/app/references/advanced-installation#Uninstall-Cypress) in this reference documentation.

### <Icon name="sync-alt" /> Continuous integration

Expand Down
45 changes: 45 additions & 0 deletions docs/app/references/advanced-installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -414,3 +414,48 @@ Refer to Microsoft Learn [Windows Subsystem for Linux Documentation](https://lea
Cypress.io does not specifically support the use of Cypress under Windows Subsystem for Linux (WSL). If you want to report an issue, please ensure that you can reproduce it without using WSL on one of the Cypress [supported operating systems](/app/get-started/install-cypress#Operating-System).

:::

## Uninstall Cypress

To uninstall Cypress from a project, use the same package manager you used to [install Cypress](/app/get-started/install-cypress):

<Tabs groupId="package-manager"
defaultValue="npm"
values={[
{label: 'npm', value: 'npm'},
{label: 'Yarn', value: 'yarn'},
{label: 'pnpm', value: 'pnpm'},
]}>
<TabItem value="npm">

```shell
npm uninstall cypress
```

</TabItem>
<TabItem value="yarn">

```shell
yarn remove cypress
```

</TabItem>
<TabItem value="pnpm">

```shell
pnpm remove cypress
```

</TabItem>
</Tabs>

To uninstall all cached Cypress binary versions, use the [cypress cache clear](./command-line#cypress-cache-clear) command with the appropriate package manager prefix described in [How to run commands](./command-line#How-to-run-commands).
Alternatively, delete the [Cypress binary cache](#Binary-cache) (see above) manually.

To delete cached [Cypress App Data](./troubleshooting#Clear-App-Data), manually delete the following directories / folders:

- macOS: `~/Library/Application Support/Cypress`
- Linux: `~/.config/Cypress`
- Windows: `$APPDATA/Cypress` (POSIX-syntax) or `%APPDATA%\Cypress` (Windows-syntax)

Refer to your package manager documentation for details of package manager `cache clean` commands to remove other packages cached by npm, Yarn or pnpm.

0 comments on commit 4668dee

Please sign in to comment.