Mie Loop Cleanup Audio ๐
Clear temp audio files during an iterative run
- loop_ctx
- loop_ctx
- cleaned
The audio member of MieNodes' loop-cleanup quartet. If your loop produces audio along the way - extracted tracks, per-iteration voiceovers, temporary WAVs on the road to a final video - MieLoopCleanupAudio clears those intermediates as the loop runs so they don't stack up and swamp your disk.
It's part of ComfyUI-MieNodes (ComfyUI_MieNodes), MieMieeeee's utility pack, under ๐ Loop.
Why you'd reach for it
Audio has a way of being bulkier than you'd guess. An uncompressed WAV per iteration, or an audio track pulled from each of a batch of video clips, adds up fast across a long loop. And audio-heavy pipelines are increasingly common - the author is a video creator, and video work drags audio along with it: lip-sync, narration, music beds, extracted stems. Every one of those steps can leave a scratch file behind.
Left alone, that's a slow-motion disk-fill that only bites on the big run. This node is the pre-emptive fix: it removes the loop's temporary audio each pass, keeping the working footprint flat no matter how many iterations you do. It's the audio-specific sibling to the cleanup nodes for images, text, and JSON; pick the one that matches your scratch.
How it works
Same shape as the rest of the cleanup family. It plugs into the loop via the shared MIE_LOOP_CTX context - takes it in, clears the loop's intermediate audio files, and passes the context back out so iteration continues. A cleaned boolean tells you whether anything was actually removed on the pass.
The inputs and outputs that matter
loop_ctx(MIE_LOOP_CTX, required) - the loop context that scopes what gets cleaned. Thread in and out.loop_ctx(output) - pass onward to keep the loop going.cleaned(BOOLEAN, output) - whether audio was removed this pass.
Installing it
ComfyUI Manager โ search ComfyUI-MieNodes โ install โ restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/MieMieeeee/ComfyUI-MieNodes
then restart. No model download. Nodes appear under ๐ MieNodes.
Common issues & troubleshooting
Deletion is permanent - protect your final audio. This targets the loop's throwaway audio, not the track you actually want to keep. Make sure your finished audio is saved outside the loop's scratch area before this runs, because there's no recovering what it removes.
cleaned is false. No temp audio existed to delete on that pass. Expected, not a failure.
It's part of the loop, not a standalone cleaner. The node relies on the MIE_LOOP_CTX threaded from MieLoopBodyIn to MieLoopBodyOut. Outside a loop it has no context to act on.
Nothing gets cleaned even though files pile up. Check that the audio you're worried about is actually the loop's intermediate audio and not files written elsewhere by another node - the cleanup is scoped to the loop's own scratch, so files a foreign node dumps somewhere else won't be its responsibility.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| loop_ctx | MIE_LOOP_CTX | โ |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| loop_ctx | MIE_LOOP_CTX | โ |
| cleaned | BOOLEAN | โ |