---
url: /relyagent-whmcs/uninstalling.md
description: >-
  How to deactivate Relyagent, what deactivation keeps versus removes, how to
  remove all Relyagent data permanently, and how to temporarily disable AI
  access.
---

# Uninstalling

Relyagent gives you a few ways to stop AI clients from connecting — from a reversible deactivation that keeps all your data, to a full, permanent removal. This page covers both, plus how to just *pause* access without uninstalling anything.

## Deactivate (reversible)

To turn Relyagent off, go to **Setup → Addon Modules**, find **Relyagent**, and click **Deactivate**. WHMCS confirms with:

::: info Deactivation message
*"Relyagent deactivated. Database tables preserved."*
:::

Deactivation removes the module's generated files (such as the hook loader), so the client-area and runtime feature stops. Your **database tables are preserved on purpose** — your audit log, connections and configuration all survive — so deactivating and later reactivating is lossless: everything comes back exactly as you left it.

## Remove all data (irreversible)

If you want Relyagent gone entirely — audit log, connections and configuration — first **deactivate** it (above), then manually drop its database tables. Relyagent's tables are all named with the `mod_relyagent_*` prefix, so drop every table matching `mod_relyagent_*` using your database tool (such as phpMyAdmin).

::: danger This cannot be undone
Dropping the `mod_relyagent_*` tables permanently deletes your audit log, all connections and their configuration — and the stored OAuth connection secrets, so any AI client that was still configured will simply stop connecting. There is **no undo** — export anything you want to keep (for example, the [audit log](/relyagent-whmcs/features/audit-and-rate-limits) CSV) beforehand.
:::

## Temporarily disable instead

If your goal is simply to stop AI clients from connecting for a while — not to uninstall — you have lighter options that leave the module in place:

* **Turn off the master switch.** Go to **Addons → Relyagent → Settings → MCP Settings → AI Client Connections** and turn off **Allow AI clients to connect**. No connection can be used while it's off, and you can turn it back on instantly.
* **Revoke specific connections.** Under **Addons → Relyagent → MCP Clients**, use **Revoke** on individual connections to cut off just those clients while leaving others working.

::: tip Pause, don't uninstall
These options are the right choice for maintenance windows or a short break — they keep all your configuration and history intact and are reversible in one click.
:::

## Related pages

* [Installation](/relyagent-whmcs/installation) — reactivate and pick up where you left off
* [Licensing](/relyagent-whmcs/licensing) — what an active license controls
