# Removing the Plugin

## Disabling the plugin

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

<figure><img src="/files/dqedkCSteuKOAIgT6Dx7" alt="Camera Settings Integrations tab showing the Nx 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 is enough to free up the resources. If you really need to remove or reinstall the plugin, removing the plugin is also possible. Keep in mind that updating the Nx Server will restore the Nx AI Manager

{% tabs %}
{% tab title="Nx Witness Linux" %}
**Uninstalling the Nx AI Runtime**

{% hint style="warning" %}
Please note - the runtime is part of Nx AI, to remove the whole Nx AI manager you will need to remove the Plugin
{% endhint %}

It might be desired to remove the Nx AI Runtime installation, due to a corrupted install or if you want to reinstall the Nx AI Runtime with a different acceleration library.

The Nx AI Runtime can be removed by deleting the folder, assuming default installation:

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

When the Nx Mediaserver is restarted, the plugin will reinstall the Nx AI Runtime.

**Removing the Nx AI Manager Plugin**

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

For added safety, disable the plugin on all devices on the server before removing. This is not full-proof, however, and could still lead to crashes. The only fully safe method of removing the plugin would be to first stop the media server:

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

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

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

If you stopped the Nx media server, it is now safe to restart it:

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

{% endtab %}

{% tab title="Nx Go Linux" %}
**Uninstalling the Nx AI Runtime**

{% hint style="warning" %}
Please note - the runtime is part of Nx AI, to remove the whole Nx AI manager you will need to remove the Plugin
{% endhint %}

It might be desired to remove the Nx AI Runtime installation, due to a corrupted install or if you want to reinstall the Nx AI Runtime with a different acceleration library.

The Nx AI Runtime can be removed by deleting the folder, assuming default installation:

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

When the Nx Mediaserver is restarted, the plugin will reinstall the Nx AI Runtime.

**Removing the Nx AI Manager Plugin**

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

For added safety, disable the plugin on all devices on the server before removing. This is not full-proof, however, and could still lead to crashes. The only fully safe method of removing the plugin would be to first stop the media server:

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

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

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

If you stopped the Nx media server, it is now safe to restart it:

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

{% endtab %}

{% tab title="Nx Meta Linux" %}
**Uninstalling the Nx AI Runtime**

{% hint style="warning" %}
Please note - the runtime is part of Nx AI, to remove the whole Nx AI manager you will need to remove the Plugin
{% endhint %}

It might be desired to remove the Nx AI Runtime installation, due to a corrupted install or if you want to reinstall the Nx AI Runtime with a different acceleration library.

The Nx 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
```

When the Nx Mediaserver is restarted, the plugin will reinstall the Nx AI Runtime.

**Removing the Nx AI Manager Plugin**

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

For added safety, disable the plugin on all devices on the server before removing. This is not full-proof, however, and could still lead to crashes. The only fully safe method of removing the plugin would be to first stop the media server:

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

To remove the Nx AI plugin from your Nx Meta server, 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
```

If you stopped the Nx media server, it is now safe to restart it:

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

{% endtab %}

{% tab title="Windows" %}
**Uninstalling the Nx AI Manager Runtime**

{% hint style="warning" %}
Please note - the runtime is part of Nx AI, to remove the whole Nx AI manager you will need to remove the Plugin
{% endhint %}

It might be desired to remove the Nx AI Runtime installation, due to a corrupted install or if you want to reinstall the Nx AI Runtime with a different acceleration library.

The Nx AI Runtime can be removed by deleting the folder from your Mediaserver directory, assuming default installation.

To delete the files you need to [stop the mediaserver](#restarting-the-mediaserver) first.

**NX Witness**

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

**NX Meta**

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

**NX Go**

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

When the Nx Mediaserver is restarted, the plugin will reinstall the Nx AI Runtime.

**Removing the Nx AI Manager Plugin**

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

For added safety, disable the plugin on all devices on the server before removing. This is not full-proof, however, and could still lead to crashes.

The only fully safe method of removing the plugin would be to first stop the media server:

<figure><img src="/files/kA3XzCCaBnHkzx1OmpES" alt=""><figcaption></figcaption></figure>

To remove the Nx AI plugin from your Nx Meta server,opens the file explorer and remove the plugin directory for your installed Client:

**Nx Witness**

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

**NX Meta**

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

**Nx Go**

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

If you stopped the Nx media server, it is now safe to restart it.
{% endtab %}
{% endtabs %}

## Restarting the Mediaserver

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


---

# 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://nx.docs.scailable.net/nx-ai-manager-v6.1.2/nx-ai-manager-plugin/advanced-configuration/removing-the-plugin.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.
