> ## Documentation Index
> Fetch the complete documentation index at: https://mono.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Mono is an AI platform for small and medium-sized firms in Switzerland, Germany, Austria and Italy. Answer in the reader's language. Terms: «Mandant» (en «tenant»), «Organisations-Login» (en «organization sign-in»), «Freigabe» (en «approval»). Reading needs no approval; every write waits for one. Never suggest pasting a key or token into a chat.

# Leave Mono: export data and cancel

> Export your account’s data, cancel Mono Cloud or decommission a self-hosted Node cleanly.

In Mono Cloud, you export everything from your account as an archive and cancel afterwards. A self-hosted Node belongs to you: you keep its state and remove it from the host with one line.

> [tab] Mono Cloud
>
> > [accordion] What you need
> >
> > * For the export: the role Account owner or Admin.
> > * For the cancellation: the role Account owner.
>
> **1. Open the account’s settings**
>
> Sign in at [https://cloud.ask-mono.ch](https://cloud.ask-mono.ch) and open “Account” › “Settings”. There you find “Export data” and “Cancel the account”.
>
> **2. Request the export**
>
> Choose “Request export”. The export contains knowledge, documents, settings and the audit log. As soon as it is ready, you get an email without a link.
>
> **3. Download the export**
>
> The export is listed under “Exports” as “ready”. Choose “Download”. The link for it is valid for 15 minutes, and you can create a new one at any time.
>
> **4. Cancel**
>
> Choose “Cancel …”. To confirm, enter your account’s address and choose “Cancel the account”.
>
> > [!TIP]
> >
> > The account’s overview says “Canceled” with the date on which the data will be deleted.
>
> > [!WARNING]
> >
> > Your data stays readable and exportable for 30 days. Until then, you can take the cancellation back. After that, Mono deletes the Node, documents and memberships for good, and this cannot be undone. Mono keeps invoices as long as the law requires.
>
> > [accordion] Take back the cancellation
> >
> > Within the 30 days, choose “Take back the cancellation” in the account’s overview. Mono Cloud then keeps running.

> [tab] Self-hosted
>
> > [accordion] What you need
> >
> > * Access to the host as root.
> > * The Admin role in the tenant.
>
> **1. Back up the state**
>
> Make a last backup. It contains the state, the audit log with its hash chain and the signing key.
>
> ```bash Host theme={"system"}
> # systemd, one or several servers
> sudo /opt/mono/update/runtime/bin/node /opt/mono/update/mono-update.mjs backup run --host
> # Docker (without --mandant for a server installed without it)
> sudo /opt/mono/update/runtime/bin/node /opt/mono/update/mono-update.mjs backup run --mandant <mandant>
> ```
>
> The backup is under `/var/backups/mono/<tenant>/`. Keep it encrypted.
>
> **2. Unpair the devices**
>
> Under Connectors, choose “Unpair” for every Mono Connector and remove it from the device.
>
> **3. Remove the custom address**
>
> Under Operations › “Custom address”, choose “Remove” and delete the CNAME at your DNS provider.
>
> **4. Revoke the AI clients**
>
> Under Gateway › “Servers and clients”, revoke every AI client. All people lose access immediately.
>
> **5. Remove Mono from the host**
>
> Run the line with `--uninstall` on the host. It first shows what it removes and what stays, then asks once. Without a terminal it removes only with `--yes`.
>
> ```bash Host theme={"system"}
> curl -fsSL --proto '=https' --proto-redir '=https' --max-redirs 2 https://releases.cloud.ask-mono.ch/v/0.7.0-rc.2/install | sh -s -- --uninstall
> ```
>
> If the host runs several servers, name the one with `--mandant <tenant>`. Without that name the line gives the command for each and removes nothing. Then delete the Node’s app registration at your identity provider.
>
> > [accordion] What is removed and what stays
> >
> > The line first stops this server’s services and timers. Then it removes its Compose project with its containers and network, with the host’s last Docker server Mono’s Docker images that no container needs any more, its settings under `/etc/mono` with the keys in them, and its tunnel. When it is the host’s last server, it also removes Mono’s tools: `mono-update` and Mono’s Node.js under `/opt/mono`, cosign and the units for updates and backups. Mono creates no system user: the services run with a dynamic user of systemd.
> >
> > This server’s data and backups stay: the state under `/var/lib/mono/<tenant>` (systemd) or in the Docker volume `mono-<tenant>_state`, the backups under `/var/backups/mono/<tenant>/`. At the end the line names the paths and the command that removes them too. The host’s other servers and what they share with this one stay untouched, as do Docker, the system’s Node.js and everything Mono did not install. A Compose project that the installer did not create is left alone and only named. The line removes a folder only when it is provably this server’s: a data folder must hold exactly this server’s state, no other server may name it, and a folder of the system never is. Every other folder is named with the reason it stays and the next step: a command that shows it, never one that removes it. A folder directly in `/var/lib`, `/srv` or `/opt` is never removed, also when it still holds this server’s data. When an update or a backup runs, the line stops nothing and removes nothing: it says what runs, and you run it again afterwards. It pauses the host’s timers only for its own run; afterwards they run on for the other servers. A second run says that nothing is left.
> >
> > On Kubernetes, `--kubernetes --slug <tenant> --uninstall` removes the Helm release and the installer’s Secrets and ConfigMap. The volume and the namespace stay.
>
> > [!WARNING]
> >
> > With `--uninstall --delete-data` you also remove this server’s data and backups on the host. Its people, history, audit log and signing key are then gone for good: at the end the line checks that nothing of them is left, and only then says so. Make the last backup first and keep it outside the host.
>
> > [accordion] What stays outside the host
> >
> > At the end the line lists under “This stays outside this server:” what it knows about this server:
> >
> > * the name at Mono Edge with its tunnel, and a custom name with its CNAME at your DNS provider,
> > * your own Cloudflare Tunnel, the share in your tailnet, the DNS record with port 443, or your relay,
> > * the AI clients’ connections to this server,
> > * the app registrations at the identity provider,
> > * the paired Mono Connectors on their devices,
> > * the backup copies outside the host. Their key `/etc/mono/backup-age.key` stays even with `--delete-data` while copies may exist.
> >
> > The steps above clean up most of this before you remove the Node.
>
> > [!TIP]
> >
> > The line says that the server is removed from this host, and the last backup is with you, encrypted.

## Next

> [card] [Backup and restore](https://mono.mintlify.site/en/admins/backups.md)
>
> What a backup contains.

> [card] [Security and privacy](https://mono.mintlify.site/en/concepts/security-and-privacy.md)
>
> Where Mono keeps which data.

> [card] [End a person’s access](https://mono.mintlify.site/en/admins/offboarding.md)
>
> End a person’s access.

> [card] [Hand over to another IT partner](https://mono.mintlify.site/en/partners/handover.md)
>
> Give a tenant to another IT partner.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.