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

# Debloat

> Find and reclaim dangling images, orphaned volumes, exited containers and build cache.

The debloater scans the host for reclaimable space with exact byte math —
not `docker system df` estimates.

## What it finds

* **Dangling images** — untagged layers (`<none>:<none>`), reclaim =
  `Size − SharedSize` so shared layers aren't double-counted
* **Unused images** — tagged but referenced by no container in any state
* **Orphaned volumes** — `RefCount` 0, sized via the engine's usage data
* **Exited containers** — `exited`/`created`/`dead`, reclaim = writable
  layer size
* **Build cache** — `InUse = false` buildkit entries

## Two-step cleanup

**1. Scan**

`/debloat` lists every item with its reclaim bytes. The desktop widget
also shows the total with a **Clean up** shortcut.

**2. Select and confirm**

Check exactly what to remove — every item names its owner and why it's
reclaimable. Slide-to-confirm runs the cleanup.

Safety: cleanup re-scans server-side and only deletes the **intersection**
of your selection and the fresh plan — anything that became referenced
between scan and confirm is skipped. Image removal uses `force` since the
plan already proved them unreferenced. Each run writes one audit-log row
with totals and per-item failures.

> [!WARNING]
>
> Orphaned volumes delete data. The scan only flags volumes Docker itself
> reports as unreferenced — but a stopped stack you plan to restart still
> counts as referenced. Deleted volumes are gone for good; there is no undo.


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