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

# Uninstall ReCasaOS

> Run sudo casaos-uninstall and answer its questions: keep or delete the containers, the images and the app data.

Run this on the box:

```bash theme={null}
sudo casaos-uninstall
```

It removes the ReCasaOS services, and asks what to do with your apps.

## The questions

1. **Do you want delete all containers?**
   * **n**: your apps' containers keep running. It then asks **Do you want to delete all images that are not used by the container?**
   * **y**: **every Docker container on this machine** is removed, including containers not installed from the dashboard. It then asks **Do you want delete all images?** (every image on the machine) and **Do you want delete all AppData of CasaOS?**

> [!WARNING]
>
> Answering yes to *delete all AppData* deletes your apps' data in `/DATA/AppData`. It cannot be undone: back it up first if you may need it.

## What stays

* **Docker** stays installed and running.
* With **n** to the first question: the containers keep running, and `/DATA/AppData` keeps the apps' data.
* **A merged `/DATA`** (several drives) is unmounted whatever you answer: your data stays on the drives, but no longer shows under `/DATA`, and apps that restart see an empty folder.
* `/var/lib/casaos` keeps the apps' compose files and a few records; `/etc/casaos` is removed.
* **Optional modules** are removed one by one (`casaos module remove`), after the containers and images and before the services. What a module needed stays on purpose, such as the virtual machines' data in `/DATA/VM`; the uninstaller prints the commands that purge it, and does not run them.

## How it was checked

On a Debian 12 virtual machine running ReCasaOS v0.5.266, answering **n** twice: every ReCasaOS service was removed, the app's container kept running, `/DATA/AppData` and Docker stayed.


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