# 6. Removing the Nx AI Manager

## Uninstalling the Nx AI Manager

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

The AI Manaer can be removed by simply deleting the folder, assuming default installation:

`sudo rm -r /opt/networkoptix-metavms/mediaserver/bin/plugins/nxai_plugin/nxai_manager`

When the mediaserver is restarted, the plugin will reinstall the Nx AI Manager.

## Removing the Nx AI plugin

{% hint style="info" %}
Removing the Nx AI 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 mediaserver:

```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/bin/plugins/nxai_plugin
```

If you stopped the mediaserver, it is now safe to restart it:

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

## Restarting the Nx Meta mediaserver

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

Please refer to Nx documentation for Nx Meta mediaserver uninstallation instructions


---

# 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-v4.x/nx-ai-manager/6.-removing-the-nx-ai-manager.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.
