Remove Backend Data (Inspire)
Free a cached key (or wipe the whole cache)
- signal_opt
- signal
This is the delete button for Inspire's backend cache. The cache nodes stash data in ComfyUI's memory under a key; this node removes an entry by that key so it stops eating RAM. It's the counterpart to Cache Backend Data and Retrieve Backend Data, and if you cache big things (checkpoints, large latent batches) you'll want it in the loop or your memory just climbs.
There's also a handy nuclear option: pass * as the key and it clears everything in the Inspire cache at once. Good for a clean slate between experiments without restarting ComfyUI.
How it works
Inspire's cache lives in the backend process, outside the graph, keyed by string. This node looks up your key and drops it from that store. One honest caveat straight from the README: deletion here only removes the entry from the cache Inspire manages. If the object is still referenced elsewhere (another node is holding it, it's in use in a live run), it won't actually be freed from memory until nothing points to it anymore - that's just how Python's garbage collection works. So this frees the cache slot; the memory follows once the last reference is gone.
The * wildcard key is special-cased to clear the entire cache rather than delete a single entry.
The inputs and outputs that matter
key(STRING) - the entry to remove. Must match the key you cached under. Use*to clear the whole cache.signal_opt(type*, optional) - a pure ordering input. It carries no data the node uses; it exists so you can force when the removal happens relative to other nodes. Wire the output of whatever must finish first into here, and the delete waits for it. The README is explicit that the node runs fine without it - it's only there for sequencing.
The output is signal (type *) - pass-through of the signal, so you can continue the ordering chain to the next node that must run after the removal.
How to install it
ComfyUI Manager: search ComfyUI Inspire Pack, install, restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Inspire-Pack
then restart. It's a Dr.Lt.Data pack (also ComfyUI-Manager and the Impact Pack).
Common issues & troubleshooting
It deleted the key but memory didn't drop. Expected if something else still references the object. Removal clears Inspire's cache entry; actual freeing waits until no live node holds the data. Make sure the run that used it has finished and nothing downstream is still pointing at it.
It removes the data before the consumer is done with it. Classic ordering problem - ComfyUI doesn't guarantee order between unconnected branches, so the remove can fire early. That's what signal_opt is for: wire the last consumer's output into signal_opt so the removal is forced to run after it.
Wrong key, nothing happens. Keys must match exactly, whitespace and all. If you're not sure what's in the cache, check with Show Cached Info first.
* cleared more than I wanted. That's the wildcard behavior - * wipes the entire Inspire cache, not just one tag. Use a specific key if you only meant to drop one entry.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| key | STRING | — | |
| signal_optopt | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| signal | * | — |