# Uninstall

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

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](/dope.console/settings/endpoints.md)).
{% 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="/files/clhXg82pTHe7Fm727SLX" 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](/dope.console/settings/endpoints.md)).
{% 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>'
```


---

# 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://inflight.dope.security/dope.endpoint/mac-installer/uninstall.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.
