Clear Cache (Model Manager)
The tiny node that reclaims your disk after Model Manager downloads pile up
- status
Every loader in this pack downloads models on demand and caches them in ComfyUI/models/model_manager_cache/. That's convenient right up until your 6.5 GB SDXL checkpoints and a dozen LoRAs are quietly filling the drive and you have no idea how much space they're taking. Clear Cache (Model Manager) is the answer: it reports the cache size, and if you insist, deletes it all.
The mechanism, and the one gotcha
This is an output node with a single input - a confirm boolean, default false - and it's a trap by design, so read it before you click:
- With
confirmleft atfalse, the node walks the cache directory, adds up the byte size of every file, and returns a status string likeCache: 12.3 MB - set confirm to true to clear. It touches nothing. - Flip
confirmtotrueand it actually deletes the whole cache directory, then reports how many MB were freed.
So the safe "just show me" mode is the default, and the destructive one requires you to deliberately toggle a switch. The status comes back as the node's status output (type STRING), which you can wire to a text-display node or just read in the node's own output area.
It's worth understanding what it wipes: the entire model_manager_cache - checkpoints, VAE, LoRAs, everything this pack has pulled down, for every loader in the family. The next time each of those models is requested, it simply re-downloads. Nothing is lost except the space, so this is more "reclaim space" than "destroy data." If you have a multi-gigabyte library you use constantly, expect a re-download spree after clearing; consider clearing per-folder or deleting individual files from the cache directory instead.
One thing it does not do: it leaves anything the Download LoRA (Model Manager) node saved into ComfyUI's normal loras folder alone. Those aren't in the cache, so this node never sees them.
Install and use
Install the pack through ComfyUI Manager (search comfyui-model-manager-nodes) or:
cd ComfyUI/custom_nodes
git clone https://github.com/blackpaw-studio/comfyui-model-manager-nodes
cd comfyui-model-manager-nodes
pip install -r requirements.txt
then restart ComfyUI. The node needs no model downloads and has no heavy dependencies - just requests and pyyaml. It also works without an active connection, since it only looks at the local cache folder; if the cache directory doesn't exist yet it just reports 0.0 MB.
Troubleshooting
- It reports 0.0 MB but I know I downloaded models. The cache lives under ComfyUI's
modelsdirectory by default. If you changedcache_dirinconfig.yaml, this node honors that - check the file, because it might be pointing somewhere else entirely. - Node shows as "cache: X MB" and won't clear. Check your wiring:
confirmis a widget by default, so make sure you flipped the widget rather than leaving it unset. The node fires every run, so toggling it totrueand running clears immediately.
This is the one node in the pack you won't touch for weeks, and then you'll be very glad it exists when your SSD cries out at 2 AM.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| confirm | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| status | STRING | — |