ComfyUI Node

VRGDG Clear Memory Button

One click to clear ComfyUI's memory — the tiny node that saves your video runs

By vrgamegirl19·Created about a year ago·Updated 2 days ago· 717
VRGDG Clear Memory Button
    • status

    This is about the smallest node in VRGameDevGirl's pack, and it might save you more headaches than half the big ones. VRGDG Clear Memory Button UI is a canvas button that queues the pack's bundled ClearMemory_API workflow - the one that tells ComfyUI to drop loaded models, empty the cache, and free VRAM/RAM before the next big operation.

    If you've done any local video work, you know the drill: a long LTX or Krea run leaves models parked in VRAM, and the next render starts by trying to load over the top, chokes, or swaps to CPU and grinds to a crawl. The pack's flagship workflows - the AI Video Builder, the Face Fix set, the Krea 2 training chunks - are exactly the kind of thing where a clean memory state between stages is the difference between a smooth run and an OOM crash. This button is the author's way of making that reset a two-second habit instead of a detour to the menu or a ComfyUI restart.

    How it works

    There's no input to configure and nothing to wire. The node is a UI affordance: on the canvas it renders as a button, and pressing it queues the bundled ClearMemory_API.json workflow that ComfyUI ships a memory-clear API for. Its only output is a status string telling you it queued the clear.

    Where it belongs in your graph: at the start of a stage that's about to load something big. Put it on the canvas before your render, click it, and watch the memory free up - then run the stage. Because it's a button rather than a flow node, it doesn't sit in your data path; it's a tool you click.

    Installing it

    Same as the rest of the pack - Manager, search vrgamedev, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/vrgamegirl19/comfyui-vrgamedevgirl.git
    

    Restart ComfyUI and hard-refresh the browser page so the button's JavaScript UI loads. That hard-refresh matters more here than for most nodes, because a button lives entirely in the frontend - a stale browser tab can show the node but do nothing when clicked.

    Common issues

    • Button click appears to do nothing. Usually a stale frontend. Hard-refresh the ComfyUI page (Ctrl+Shift+R) so the latest JS files load.
    • Memory still not freed. The clear is queued as a workflow, so it runs like any other queue item - it happens between jobs, not instantly mid-run. Make sure you're not queuing it behind a giant render that's already loaded everything.
    • You're clicking it constantly. That's fine, it's what it's for. Some people throw it into the workflow they save, right before the heavy node, so the button is always there when the workflow is loaded.

    It's a utility, not a mystery. The honest pitch: if you render video or train LoRAs in this pack, put this button on your canvas and get in the habit. The alternative is restarting ComfyUI, and nobody has time for that.

    CategoryVRGDG/UI

    Inputs (0)

    No inputs

    Outputs (1)

    NameTypeDescription
    statusSTRING