> For the complete documentation index, see [llms.txt](https://nx.docs.scailable.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nx.docs.scailable.net/ai-manager-v6.1.4/ai-manager-plugin/advanced-configuration/removing-the-plugin.md).

# Removing the Plugin

## Disabling the Plugin

Disabling the plugin can be done by switching the plugin off with the toggle switch on the Integrations tab.

<figure><img src="/files/dqedkCSteuKOAIgT6Dx7" alt="Camera Settings Integrations tab showing the AI Manager toggle in the off/disabled position"><figcaption><p>Disable the plugin by switching the toggle off - this frees resources without removing the plugin</p></figcaption></figure>

Switching off the plugin frees up resources. To remove or reinstall the plugin entirely, follow the steps below. Keep in mind that updating the Mediaserver will restore the AI Manager plugin if it was removed.

## Uninstalling the AI Runtime

{% hint style="warning" %}
The AI Runtime is a hardware-specific engine that runs as a sub-process inside the AI Manager plugin. Remove the plugin to remove the whole AI Manager.
{% endhint %}

Remove the AI Runtime installation if the install is corrupted or a different acceleration library is needed.

{% tabs %}
{% tab title="Linux" %}
The AI Runtime can be removed by deleting the folder, assuming default installation:

```bash
sudo rm -r /opt/networkoptix-metavms/mediaserver/var/nx_ai_manager/nxai_manager
```

Restarting the Mediaserver reinstalls the AI Runtime.
{% endtab %}

{% tab title="Windows" %}
Remove the AI Runtime by deleting the folder from the Mediaserver directory (default installation path).

[Stop the Mediaserver](#restarting-the-mediaserver) before deleting the files.

```bash
C:\Program Files\Network Optix\Nx Meta\MediaServer\plugins\nx_ai_manager_plugin\nxai_manager
```

Restarting the Mediaserver reinstalls the AI Runtime.
{% endtab %}
{% endtabs %}

## Removing the AI Manager Plugin

{% hint style="warning" %}
Removing the AI Manager Plugin can lead to the Mediaserver crashing if it is in use.
{% endhint %}

For added safety, disable the plugin on all devices on the server before removing it. This does not guarantee against crashes.

{% tabs %}
{% tab title="Linux" %}
The only fully safe method is to stop the Mediaserver first:

```bash
sudo systemctl stop networkoptix-metavms-mediaserver.service
```

To remove the AI plugin from your Mediaserver, log in to the server console and execute the following command:

```bash
sudo rm -r /opt/networkoptix-metavms/mediaserver/var/nx_ai_manager/nxai_manager
```

Restart the Mediaserver if it was stopped:

```bash
sudo systemctl start networkoptix-metavms-mediaserver.service
```

{% endtab %}

{% tab title="Windows" %}
The only fully safe method is to stop the Mediaserver first:

<figure><img src="/files/kA3XzCCaBnHkzx1OmpES" alt="Stopping the Mediaserver on Windows before removing the plugin"><figcaption></figcaption></figure>

To remove the AI plugin from your Mediaserver, open the file explorer and remove the plugin directory for your installed Client:

```bash
C:\Program Files\Network Optix\Nx Meta\MediaServer\plugins\nx_ai_manager_plugin
```

Restart the Mediaserver if it was stopped.
{% endtab %}
{% endtabs %}

## Restarting the Mediaserver

After uninstalling the AI Manager Plugin and AI Manager, [restart](/ai-manager-v6.1.4/support-and-troubleshooting/troubleshooting/controlling-the-server-and-the-plugin.md) the Mediaserver for these changes to take effect.
