sudo casaos-uninstall in your terminal. The built-in script will prompt you to remove containers and data. For a full clean, also delete the /var/lib/casaos directory and stop any lingering services. That's it β done in under two minutes.
CasaOS is a genuinely clever piece of software. It turns a bare Raspberry Pi into a polished home cloud server with a tidy web dashboard. But β like that gym membership you took out in January β sometimes it just needs to go.
Maybe you're switching to a different OS. Maybe CasaOS is conflicting with Docker. Or maybe you just want a clean slate. Whatever the reason, this guide walks you through every removal method β from the official one-liner to full manual cleanup β with zero guesswork.
Uninstalling CasaOS can remove your Docker containers and app data. Always back up anything important before you run a single command. You have been warned β politely, but firmly.
What Is CasaOS? (Quick Background)
CasaOS is an open-source personal cloud operating system developed by IceWhale Technology. It runs on top of standard Linux distributions β including Raspberry Pi OS β and uses Docker under the hood to manage apps.
- License: Open-source (Apache 2.0)
- Supported hardware: Raspberry Pi 4, Pi 5, ZimaBoard, Intel NUC, x86 machines
- Compatible OS: Ubuntu, Debian, Raspberry Pi OS, and CentOS
- Interface: Browser-based dashboard (no desktop needed)
- GitHub: IceWhaleTech/CasaOS
A note on "Raspberry Pi 6": As of May 2026, the Raspberry Pi Foundation has not officially released a Raspberry Pi 6. Community sources suggest a possible release in late 2026 or 2027. The steps in this guide apply to all current Raspberry Pi models running a Debian-based OS.
Why Would You Uninstall CasaOS?
People remove CasaOS for a handful of sensible reasons. Here are the most common ones:
| Reason | Details |
|---|---|
| Switching platforms | Moving to Umbrel, YunoHost, or bare Docker Compose |
| Docker conflicts | CasaOS manages Docker globally; can clash with manual setups |
| Resource recovery | Freeing CPU and RAM on lower-spec Pi models (Pi 4 with 2 GB) |
| Clean reinstall | Resetting after a corrupted or broken install |
| OS migration | Flashing a fresh OS image to the SD card or NVMe |
| Testing environments | Devs spinning Pi environments up and down frequently |
Before You Start: Checklist
Run through this list before touching a single command. Seriously β five minutes now saves an hour of pain later.
- β Back up your data β containers, app configs, uploaded files
- β SSH access ready β do this from an SSH session, not the CasaOS browser terminal
- β Note your installed apps β list them before removal if you plan to reinstall them elsewhere
- β Know your Pi's IP address β you may need it after reboot
- β Stable power supply β never run system operations on a wobbly USB connection
Run
docker ps -a to list all your current containers before uninstalling. Screenshot or copy the output β you'll thank yourself later.
Method 1: Official Uninstall Command (Recommended)
This is the official method documented by IceWhale Technology in the CasaOS Wiki. It's the cleanest, fastest, and safest way to remove CasaOS.
Open an SSH Session
Connect to your Pi via SSH from another machine. Do not use the terminal inside the CasaOS browser UI β it will kill the process mid-uninstall.
Run the Uninstall Command
Paste this into your terminal and press Enter:
sudo casaos-uninstall
Answer the Prompts
The script will ask two yes/no questions using an interactive dialog. Read each one carefully before answering.
The two prompts you'll see:
- Prompt 1: "Do you want to remove all containers of CasaOS?" β Answer Yes to remove Docker containers installed via CasaOS.
- Prompt 2: "Do you want to remove all files of CasaOS?" β Answer Yes for a complete removal of app data and config files.
Wait for Confirmation
The script will display Uninstall succeed! when complete. This usually takes 30β90 seconds depending on how many containers you had installed.
Reboot Your Pi
Always reboot after any major software removal. Run sudo reboot to restart cleanly.
sudo reboot
Source: CasaOS Official Wiki β Guides
Method 2: Manual Cleanup (After the Uninstall Script)
The official script does most of the heavy lifting. But if you want to be absolutely certain no files remain, run these commands as a follow-up.
Step 1 β Stop CasaOS Services
sudo systemctl stop casaos
sudo systemctl stop casaos-user-service
sudo systemctl stop casaos-gateway
Step 2 β Remove Remaining Directories
Common CasaOS file locations to check and remove:
| Directory | Contents | Safe to Delete? |
|---|---|---|
/var/lib/casaos |
App data, databases, user configs | β Yes β after backup |
/etc/casaos |
System configuration files | β Yes |
/usr/share/casaos |
UI assets and resources | β Yes |
/var/log/casaos |
Log files | β Yes |
/var/lib/docker |
All Docker images and volumes | β οΈ Only if you want to remove Docker entirely |
sudo rm -rf /var/lib/casaos
sudo rm -rf /etc/casaos
sudo rm -rf /usr/share/casaos
sudo rm -rf /var/log/casaos
Step 3 β Search for Leftover Files
sudo find / -name "*casaos*" 2>/dev/null
If the find command returns results, review them manually before deleting. Not everything with "casaos" in the name is safe to remove automatically.
Step 4 β Remove CasaOS Systemd Services (if any remain)
sudo systemctl disable casaos 2>/dev/null
sudo rm -f /etc/systemd/system/casaos*.service
sudo systemctl daemon-reload
Method 3: Removing Docker (Optional)
CasaOS installs and manages Docker on your system. Removing CasaOS does not automatically remove Docker. If you want a truly clean system, here's how to remove Docker too.
Only do this if you genuinely don't need Docker for anything else on this Pi. If you're planning to use Docker independently, skip this section.
# Remove Docker packages
sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
# Remove Docker data directories
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
# Clean up
sudo apt-get autoremove -y
sudo apt-get autoclean
Method 4: Full SD Card / Storage Wipe
This is the "nuclear option." You flash a fresh OS image, and CasaOS never existed. It's the most effective method when the uninstall script has failed β for example, due to a broken Docker daemon.
- Shut down the Pi properly β run
sudo shutdown -h nowand wait for the activity light to stop blinking. - Remove the SD card or NVMe drive from the Raspberry Pi.
- Connect it to your computer using an SD card reader or USB adapter.
- Download Raspberry Pi Imager from raspberrypi.com/software.
- Flash your chosen OS β Raspberry Pi OS, Ubuntu Server, or another image.
- Reinsert and power on β your Pi boots fresh with no trace of CasaOS.
Flashing a new image wipes everything on that storage device. There is no undo. Back up before you proceed β 100% of the time, no exceptions.
Which Method Should You Use?
| Method | Time Required | Data Risk | Best For |
|---|---|---|---|
| Official command | 1β2 min | Medium (prompts warn you) | Most users β clean working installs |
| Manual cleanup | 5β10 min | Low (you control each step) | Power users wanting full control |
| Docker removal | 2β3 min | High (removes all containers) | Starting completely fresh with Docker |
| Full SD wipe | 15β30 min | Very High (all data gone) | Broken installs, total fresh start |
Why Do People Remove CasaOS? (Community Data)
Based on discussions in the Raspberry Pi Forums and the BigBearTech Community, here are the most commonly cited reasons users uninstall CasaOS:
* Estimates based on community forum thread themes, not formal survey data.
Troubleshooting: When Things Go Wrong
The uninstall doesn't always go smoothly. Here's how to handle the most common issues:
Problem: "casaos-uninstall: command not found"
The uninstall binary isn't in your PATH. Try the full path:
sudo /usr/local/bin/casaos-uninstall
If that also fails, the binary may have already been removed. Switch to Method 2 (manual cleanup).
Problem: Docker Daemon Error During Uninstall
If you see "Cannot connect to the Docker daemon", restart Docker first:
sudo systemctl start docker
sudo systemctl enable docker
Then re-run the uninstall command. This is a known issue when running Pi OS from an external NVMe drive, as reported in the Raspberry Pi Forums.
Problem: CasaOS Web UI Still Loading After Uninstall
A browser cache issue, not a system issue. Clear your browser cache or try an incognito tab. If the UI is genuinely still running, check for leftover services:
sudo systemctl list-units | grep casaos
Problem: Pi Won't Boot After Uninstall
This is rare but happens if the uninstall script was interrupted. Your safest fix is the full SD card wipe (Method 4). Attempting repairs on a half-removed system wastes time β a fresh flash is faster and cleaner.
Changed Your Mind? Reinstall CasaOS in 60 Seconds
Uninstalled CasaOS and regret it? No judgement. Getting it back is one command, straight from the official source:
curl -fsSL https://get.casaos.io | sudo bash
That's it. The script installs CasaOS and Docker automatically. Give it two to three minutes, then open your browser at http://<your-pi-ip> to see the dashboard.
According to the CasaOS Wiki, the recommended clean reinstall sequence is: run
sudo casaos-uninstall first, answer all prompts with yes, then run the install command above. That gives you a genuinely fresh start.
Frequently Asked Questions
Q: Does uninstalling CasaOS remove Docker?
No. CasaOS installs Docker, but removing CasaOS does not remove Docker. You need to uninstall Docker separately using apt-get purge if you want a clean slate.
Q: Will I lose my app data when I uninstall CasaOS?
It depends on how you answer the script prompts. If you say yes to removing containers and files, your app data will be deleted. If you say no, it stays on disk even after CasaOS is removed.
Q: Can I uninstall CasaOS from the browser terminal?
No. The CasaOS Wiki explicitly warns against this. Running casaos-uninstall from the in-browser terminal kills the UI β and with it, the uninstallation process. Always use an SSH session instead.
Q: Does this guide work for Raspberry Pi 5?
Yes. All commands work on any Raspberry Pi running a Debian-based OS (Raspberry Pi OS, Ubuntu, etc.). CasaOS doesn't care which Pi model you have β and neither do these steps.
Q: Is the Raspberry Pi 6 officially released?
Not as of May 2026. The Raspberry Pi Foundation has not announced or released a Raspberry Pi 6. Community sources estimate a potential release window of late 2026 or 2027. This guide applies to all currently available Pi models.
Q: What happens to my Nextcloud or Jellyfin data after uninstalling?
If you told the uninstall script to keep your files (answered "no" to container removal), your Docker volumes remain at /var/lib/docker/volumes. You can reattach them to new containers after a reinstall.
Final Summary
Uninstalling CasaOS from a Raspberry Pi is not complicated β as long as you use the right method and back up first.
- Quickest way:
sudo casaos-uninstallβ official, fast, and interactive. - Deepest clean: Follow up with manual directory removal and a Docker purge.
- Broken install? Flash a fresh OS image. No shame in it β everyone does it eventually.
- Changed your mind? One curl command puts CasaOS right back.
The whole process takes under five minutes for most users. The hardest part is remembering to back up before you start β so go do that now, before you forget.
Sources & References
- IceWhale Technology β CasaOS Official Wiki: Guides
- IceWhaleTech β CasaOS GitHub Repository
- IceWhaleTech β casaos-uninstall.sh source code (GitHub)
- BigBearTech Community β How to Uninstall CasaOS (Community Guide)
- Raspberry Pi Forums β Installing CasaOS β Docker Daemon Issues Thread
- RaspberryTips β Raspberry Pi 6: Release Date, Specs, and Rumors
- MakerBright β Raspberry Pi 6 Release Date: What's Coming Next
sudo casaos-uninstall in your terminal. The built-in script will prompt you to remove containers and data. For a full clean, also delete the /var/lib/casaos directory and stop any lingering services. That's it β done in under two minutes.
CasaOS is a genuinely clever piece of software. It turns a bare Raspberry Pi into a polished home cloud server with a tidy web dashboard. But β like that gym membership you took out in January β sometimes it just needs to go.
Maybe you're switching to a different OS. Maybe CasaOS is conflicting with Docker. Or maybe you just want a clean slate. Whatever the reason, this guide walks you through every removal method β from the official one-liner to full manual cleanup β with zero guesswork.
Uninstalling CasaOS can remove your Docker containers and app data. Always back up anything important before you run a single command. You have been warned β politely, but firmly.
What Is CasaOS? (Quick Background)
CasaOS is an open-source personal cloud operating system developed by IceWhale Technology. It runs on top of standard Linux distributions β including Raspberry Pi OS β and uses Docker under the hood to manage apps.
- License: Open-source (Apache 2.0)
- Supported hardware: Raspberry Pi 4, Pi 5, ZimaBoard, Intel NUC, x86 machines
- Compatible OS: Ubuntu, Debian, Raspberry Pi OS, and CentOS
- Interface: Browser-based dashboard (no desktop needed)
- GitHub: IceWhaleTech/CasaOS
A note on "Raspberry Pi 6": As of May 2026, the Raspberry Pi Foundation has not officially released a Raspberry Pi 6. Community sources suggest a possible release in late 2026 or 2027. The steps in this guide apply to all current Raspberry Pi models running a Debian-based OS.
Why Would You Uninstall CasaOS?
People remove CasaOS for a handful of sensible reasons. Here are the most common ones:
| Reason | Details |
|---|---|
| Switching platforms | Moving to Umbrel, YunoHost, or bare Docker Compose |
| Docker conflicts | CasaOS manages Docker globally; can clash with manual setups |
| Resource recovery | Freeing CPU and RAM on lower-spec Pi models (Pi 4 with 2 GB) |
| Clean reinstall | Resetting after a corrupted or broken install |
| OS migration | Flashing a fresh OS image to the SD card or NVMe |
| Testing environments | Devs spinning Pi environments up and down frequently |
Before You Start: Checklist
Run through this list before touching a single command. Seriously β five minutes now saves an hour of pain later.
- β Back up your data β containers, app configs, uploaded files
- β SSH access ready β do this from an SSH session, not the CasaOS browser terminal
- β Note your installed apps β list them before removal if you plan to reinstall them elsewhere
- β Know your Pi's IP address β you may need it after reboot
- β Stable power supply β never run system operations on a wobbly USB connection
Run
docker ps -a to list all your current containers before uninstalling. Screenshot or copy the output β you'll thank yourself later.
Method 1: Official Uninstall Command (Recommended)
This is the official method documented by IceWhale Technology in the CasaOS Wiki. It's the cleanest, fastest, and safest way to remove CasaOS.
Open an SSH Session
Connect to your Pi via SSH from another machine. Do not use the terminal inside the CasaOS browser UI β it will kill the process mid-uninstall.
Run the Uninstall Command
Paste this into your terminal and press Enter:
sudo casaos-uninstallAnswer the Prompts
The script will ask two yes/no questions using an interactive dialog. Read each one carefully before answering.
The two prompts you'll see:
- Prompt 1: "Do you want to remove all containers of CasaOS?" β Answer Yes to remove Docker containers installed via CasaOS.
- Prompt 2: "Do you want to remove all files of CasaOS?" β Answer Yes for a complete removal of app data and config files.
Wait for Confirmation
The script will display Uninstall succeed! when complete. This usually takes 30β90 seconds depending on how many containers you had installed.
Reboot Your Pi
Always reboot after any major software removal. Run sudo reboot to restart cleanly.
sudo rebootSource: CasaOS Official Wiki β Guides
Method 2: Manual Cleanup (After the Uninstall Script)
The official script does most of the heavy lifting. But if you want to be absolutely certain no files remain, run these commands as a follow-up.
Step 1 β Stop CasaOS Services
sudo systemctl stop casaos
sudo systemctl stop casaos-user-service
sudo systemctl stop casaos-gatewayStep 2 β Remove Remaining Directories
Common CasaOS file locations to check and remove:
| Directory | Contents | Safe to Delete? |
|---|---|---|
/var/lib/casaos |
App data, databases, user configs | β Yes β after backup |
/etc/casaos |
System configuration files | β Yes |
/usr/share/casaos |
UI assets and resources | β Yes |
/var/log/casaos |
Log files | β Yes |
/var/lib/docker |
All Docker images and volumes | β οΈ Only if you want to remove Docker entirely |
sudo rm -rf /var/lib/casaos
sudo rm -rf /etc/casaos
sudo rm -rf /usr/share/casaos
sudo rm -rf /var/log/casaosStep 3 β Search for Leftover Files
sudo find / -name "*casaos*" 2>/dev/nullIf the find command returns results, review them manually before deleting. Not everything with "casaos" in the name is safe to remove automatically.
Step 4 β Remove CasaOS Systemd Services (if any remain)
sudo systemctl disable casaos 2>/dev/null
sudo rm -f /etc/systemd/system/casaos*.service
sudo systemctl daemon-reloadMethod 3: Removing Docker (Optional)
CasaOS installs and manages Docker on your system. Removing CasaOS does not automatically remove Docker. If you want a truly clean system, here's how to remove Docker too.
Only do this if you genuinely don't need Docker for anything else on this Pi. If you're planning to use Docker independently, skip this section.
# Remove Docker packages
sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
# Remove Docker data directories
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
# Clean up
sudo apt-get autoremove -y
sudo apt-get autocleanMethod 4: Full SD Card / Storage Wipe
This is the "nuclear option." You flash a fresh OS image, and CasaOS never existed. It's the most effective method when the uninstall script has failed β for example, due to a broken Docker daemon.
- Shut down the Pi properly β run
sudo shutdown -h nowand wait for the activity light to stop blinking. - Remove the SD card or NVMe drive from the Raspberry Pi.
- Connect it to your computer using an SD card reader or USB adapter.
- Download Raspberry Pi Imager from raspberrypi.com/software.
- Flash your chosen OS β Raspberry Pi OS, Ubuntu Server, or another image.
- Reinsert and power on β your Pi boots fresh with no trace of CasaOS.
Flashing a new image wipes everything on that storage device. There is no undo. Back up before you proceed β 100% of the time, no exceptions.
Which Method Should You Use?
| Method | Time Required | Data Risk | Best For |
|---|---|---|---|
| Official command | 1β2 min | Medium (prompts warn you) | Most users β clean working installs |
| Manual cleanup | 5β10 min | Low (you control each step) | Power users wanting full control |
| Docker removal | 2β3 min | High (removes all containers) | Starting completely fresh with Docker |
| Full SD wipe | 15β30 min | Very High (all data gone) | Broken installs, total fresh start |
Why Do People Remove CasaOS? (Community Data)
Based on discussions in the Raspberry Pi Forums and the BigBearTech Community, here are the most commonly cited reasons users uninstall CasaOS:
* Estimates based on community forum thread themes, not formal survey data.
Troubleshooting: When Things Go Wrong
The uninstall doesn't always go smoothly. Here's how to handle the most common issues:
Problem: "casaos-uninstall: command not found"
The uninstall binary isn't in your PATH. Try the full path:
sudo /usr/local/bin/casaos-uninstallIf that also fails, the binary may have already been removed. Switch to Method 2 (manual cleanup).
Problem: Docker Daemon Error During Uninstall
If you see "Cannot connect to the Docker daemon", restart Docker first:
sudo systemctl start docker
sudo systemctl enable dockerThen re-run the uninstall command. This is a known issue when running Pi OS from an external NVMe drive, as reported in the Raspberry Pi Forums.
Problem: CasaOS Web UI Still Loading After Uninstall
A browser cache issue, not a system issue. Clear your browser cache or try an incognito tab. If the UI is genuinely still running, check for leftover services:
sudo systemctl list-units | grep casaosProblem: Pi Won't Boot After Uninstall
This is rare but happens if the uninstall script was interrupted. Your safest fix is the full SD card wipe (Method 4). Attempting repairs on a half-removed system wastes time β a fresh flash is faster and cleaner.
Changed Your Mind? Reinstall CasaOS in 60 Seconds
Uninstalled CasaOS and regret it? No judgement. Getting it back is one command, straight from the official source:
curl -fsSL https://get.casaos.io | sudo bashThat's it. The script installs CasaOS and Docker automatically. Give it two to three minutes, then open your browser at http://<your-pi-ip> to see the dashboard.
According to the CasaOS Wiki, the recommended clean reinstall sequence is: run
sudo casaos-uninstall first, answer all prompts with yes, then run the install command above. That gives you a genuinely fresh start.
Frequently Asked Questions
Q: Does uninstalling CasaOS remove Docker?
No. CasaOS installs Docker, but removing CasaOS does not remove Docker. You need to uninstall Docker separately using apt-get purge if you want a clean slate.
Q: Will I lose my app data when I uninstall CasaOS?
It depends on how you answer the script prompts. If you say yes to removing containers and files, your app data will be deleted. If you say no, it stays on disk even after CasaOS is removed.
Q: Can I uninstall CasaOS from the browser terminal?
No. The CasaOS Wiki explicitly warns against this. Running casaos-uninstall from the in-browser terminal kills the UI β and with it, the uninstallation process. Always use an SSH session instead.
Q: Does this guide work for Raspberry Pi 5?
Yes. All commands work on any Raspberry Pi running a Debian-based OS (Raspberry Pi OS, Ubuntu, etc.). CasaOS doesn't care which Pi model you have β and neither do these steps.
Q: Is the Raspberry Pi 6 officially released?
Not as of May 2026. The Raspberry Pi Foundation has not announced or released a Raspberry Pi 6. Community sources estimate a potential release window of late 2026 or 2027. This guide applies to all currently available Pi models.
Q: What happens to my Nextcloud or Jellyfin data after uninstalling?
If you told the uninstall script to keep your files (answered "no" to container removal), your Docker volumes remain at /var/lib/docker/volumes. You can reattach them to new containers after a reinstall.
Final Summary
Uninstalling CasaOS from a Raspberry Pi is not complicated β as long as you use the right method and back up first.
- Quickest way:
sudo casaos-uninstallβ official, fast, and interactive. - Deepest clean: Follow up with manual directory removal and a Docker purge.
- Broken install? Flash a fresh OS image. No shame in it β everyone does it eventually.
- Changed your mind? One curl command puts CasaOS right back.
The whole process takes under five minutes for most users. The hardest part is remembering to back up before you start β so go do that now, before you forget.
Sources & References
- IceWhale Technology β CasaOS Official Wiki: Guides
- IceWhaleTech β CasaOS GitHub Repository
- IceWhaleTech β casaos-uninstall.sh source code (GitHub)
- BigBearTech Community β How to Uninstall CasaOS (Community Guide)
- Raspberry Pi Forums β Installing CasaOS β Docker Daemon Issues Thread
- RaspberryTips β Raspberry Pi 6: Release Date, Specs, and Rumors
- MakerBright β Raspberry Pi 6 Release Date: What's Coming Next
