🌻 Delete Local Any
Clean up files from inside a batch pipeline
- Tips
- Deleted_Paths
Deletes a file or directory on the machine running ComfyUI. That's the whole node, and yes, it's exactly as blunt as it sounds. It exists for the tail end of automated pipelines - clean up the temp files after you've zipped or uploaded the real outputs - and the README is upfront about the obvious hazard: deletion is permanent.
When you'd actually use it
Most people never touch this, and that's fine. But if you're running a real batch pipeline - generate a folder of intermediates, process them, bundle the finished results, then tidy up - you want a cleanup step so temp files don't pile up run after run. Delete Local Any is that step. It takes a path (which can come straight from another node's string output, like the path a saver or zip node just wrote), and removes it. Wire it after everything that matters has been safely written or exported.
How it works
It's an output node. You give it a target and it deletes it - no trash bin, no confirmation, no undo. The Any input accepts a string path, and it's typed loosely on purpose so you can feed it the output of an upstream node rather than typing a path by hand. File_Name lets you specify a particular file to target.
The inputs
- Any - the path to delete. Because it takes any upstream string, you can chain it to a node that produced the file you now want gone.
- File_Name - the specific file name to remove.
Two outputs come back: Tips, a status message about what happened, and Deleted_Paths, the list of what it actually removed - check this if you want to confirm it hit the right thing.
Common issues
This is the one node in the pack to be genuinely careful with. There's no recovery - a wrong path means gone, permanently, as the README stresses. A few habits keep you safe: place it last in the graph, after your outputs are written and (if relevant) uploaded; double-check the path you're feeding it, especially if it's coming dynamically from another node; and read Deleted_Paths to verify it removed what you intended and not something adjacent. On a shared or serverless ComfyUI the working directories are usually ephemeral anyway, so the cleanup matters less there - but the "no undo" rule still holds for anything persistent you point it at.
Installing ComfyUI-Addoor
ComfyUI-Addoor (葵花宝典) is a batch and utility pack from developer Eagle-CN. ComfyUI Manager: Install Custom Nodes → search "ComfyUI-Addoor" → install → restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/Eagle-CN/ComfyUI-Addoor.git
cd ComfyUI-Addoor
pip install -r requirements.txt
Restart and find it under 🌻 Addoor / Batch.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| Any | STRING | — | |
| File_Name | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| Tips | STRING | — |
| Deleted_Paths | STRING | — |