# Uninstall Devin Server

{% hint style="danger" %}
Uninstalling Devin Server will remove all Devin project data and backup files, such as version backup files, version descriptions and data migration history.&#x20;
{% endhint %}

To uninstall Devin Server, ensure you have administrator/root access on the server and follow these steps:

{% tabs %}
{% tab title="Linux" %}

1. Download the uninstaller script with:

```bash
wget https://download.devin.fm/downloads/uninstall_devin_unix.sh
```

2. Make the script executable with:

```bash
chmod +x uninstall_devin_unix.sh
```

3. Run the uninstaller as a superuser with:

```bash
sudo ./uninstall_devin_unix.sh
```

4. Complete the uninstallation by following the instructions in the removal script.
   {% endtab %}

{% tab title="macOS" %}

1. Navigate to the uninstaller by running:

```bash
cd /Library/Devin-Server/{version}
```

2. Then type the following:

```bash
sudo sh uninstall.sh
```

3. When prompted, enter your password and type `Y` to proceed the uninstallation.
   {% endtab %}

{% tab title="Windows Server" %}

1. Stop Devin Server (see [Starting, Stopping and Restarting Devin Server](/server-mangement/starting-stopping-and-restarting-devin-server.md))
2. Open Windows PowerShell
3. Navigate to the Devin directory by running the following command:

```
cd "C:\Program Files\Devin\"
```

4. Start the uninstall script by running the following command:

```
.\uninstall.ps1 -Username "<FMS Admin Username>" -Password "<FMS Admin Password>" 
```

{% endtab %}
{% endtabs %}


---

# 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://docs.devin.fm/uninstallation/uninstall-devin-server.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.
