HalloweenHappy Halloween from Andronix. A full Linux desktop on your phone, no tricks.See Modded OS →Halloween sale · until Nov 1Modded Pass and Andronix Complete, 30% off.See the prices →

andronix.docs
Termux (older phones)

Uninstall a Distro in Termux

Remove a distro installed in Termux, with the Andronix app's uninstall command or andronix remove.

This page is for Andronix with Termux, on phones that can't run Linux in the app (Android 7, or no 64-bit ARM processor), or if you use the command-line installer. For Linux in the app, see Uninstall a distro.

Upgrading from an older Modded OS? If you installed a Modded OS with the old Andronix app (8.x or earlier), see Upgrading from an older Modded OS: back up your files, uninstall the old version, then install the new one.

Learn how to uninstall a Linux distro you installed with Andronix. The app generates the uninstall command for you, so all you need to do is run it in Termux. You can also remove a distro yourself with one command; see Uninstalling from Termux.

These instructions need the Andronix app 10.0 or newer (Andronix 2.0). Don't want to use the app? See Uninstalling from Termux.
This is not a guide for uninstalling a Modded OS.
Uninstalling deletes everything inside the distro. Copy anything you want to keep to /sdcard first, or make a backup with andronix backup.

1. Preparation 🚀

Open Andronix app

Open the Andronix app and tap the Linux distros card on Home.

The Andronix app's Home screen, with the Linux distros card

Select Distribution

You'll now see all the distributions available in Andronix.

The list of free Linux distros in the Andronix app

2. Selection ⭐

Long Press on Distribution

Long press the distro you want to uninstall. This opens a menu with options for that distro.

The long-press sheet for Debian with the Uninstall option

Select Uninstall

Tap the Uninstall button to start the process.

3. Termux Execution 💻

This is where your Linux distribution actually gets removed.

When this step opens, the app copies the uninstall command to your clipboard.

Termux

You'll run this command in Termux to remove the distro.

Before you continue, make sure you're using a compatible version of Termux. If you haven't already, follow the Migrating Termux to F-Droid guide.

Paste and Execute

First, stop the desktop (vncserver-stop) and exit the distro if it's running. Then tap Copy and open Termux: the app copies the command again and opens Termux. In Termux, long-press, tap Paste, then press Enter.

The Termux step with the uninstall command

All done!

That's it! You've successfully uninstalled the Linux distribution from your Android device.

Uninstalling from Termux

If you installed the distro with Andronix 2.0, you can remove it without the app. Stop the desktop and exit the distro, then run this in Termux:

andronix remove debian

Replace debian with the name of your distro (ubuntu, ubuntu24, kali, fedora, arch, manjaro, alpine or void). Run andronix list if you're not sure what's installed.

The command shows what it will delete and asks you to confirm. It removes the distro and its start script. Your files in /sdcard are not touched.

--legacy also removes a copy of the same distro left by the pre-2.0 installer (for example ~/debian-fs), as in andronix remove debian --legacy. The uninstall command the app copies includes --legacy, so uninstalling from the app removes both. See Installs from before Andronix 2.0.

Removing a Modded OS? Use its edition id instead of the distro name. See Remove a Modded OS.

Next steps

On this page