# Uninstall

### On macOS the dope.endpoint can be uninstalled using an uninstall script.&#x20;

Th uninstall script can be found within the dope.security installation folder /Library/Application Support/dope.security. The script is called uninstall.sh.

```
sudo zsh /Library/Application\ Support/dope.security/uninstall.sh
```

{% hint style="warning" %}
Users will always be prompted for an uninstall password where an anti-uninstall password has been configured in the dope.console (see: [endpoints](https://inflight.dope.security/dope.console/settings/endpoints "mention")).
{% endhint %}

Where an MDM profile has not been installed on the device there will be an initial prompt to allow the uninstall to start.

<figure><img src="https://4250118259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqdf21diS0j19gSMF9LeP%2Fuploads%2FH6Q4ND9kcWSHn3CATpi4%2Fgitbook-2023_mac_uninstall_pass.png?alt=media&#x26;token=60bd1019-f9b7-49e9-8656-334316da7231" alt=""><figcaption></figcaption></figure>

You will then be prompted to enter the Anti-Tampering password.

You will then be prompted for your system password to uninstall the System Extension.

The uninstallation should continue and be successful.

### Uninstall Parameters

The uninstall script can take two parameters `-s` and `-p`.

Using `-s` makes the uninstall silent:

{% hint style="warning" %}
Using `-s` will not stop the password prompt where an anti-uninstall password has been configured in the dope.console (see: [endpoints](https://inflight.dope.security/dope.console/settings/endpoints "mention")).
{% endhint %}

Using `-p` allows a password to be sent with the following command:

```
sudo zsh /Library/Application Support/dope.security/uninstall.sh -p '<password>'
```

Using `-p` on its own with an incorrect password will result in a password re-prompt until the correct password is provided:

{% hint style="warning" %}
Where `-s` and `-p` are used together, an incorrect password will not result in a re-prompt but the uninstall will fail.
{% endhint %}

```
sudo zsh /Library/Application Support/dope.security/uninstall.sh -s -p '<password>'
```
