⭐ Star Output Cleaner
Clean your output folder without leaving ComfyUI or touching the filesystem
Every heavy ComfyUI user has an output folder that's become a digital landfill - thousands of ComfyUI_0007_.png files, most of them seeds you rejected hours ago. Star Output Cleaner is the pack's answer: a gallery widget built into the node that shows 200x200 thumbnails of your output folder (or any folder you point it at), filtered by time, so you can eyeball what's junk and delete it - or download a selection as a ZIP - without ever opening a file explorer.
That "without leaving ComfyUI" bit is the whole value. Deleting generations from inside the app keeps you in flow, and the thumbnail view beats guessing from filenames. It's the kind of small utility the pack exists to provide, and it plays well with the fact that this is a node you'd throw onto any workflow or even run standalone.
How it works
The node's real interface is its custom gallery widget - the numeric inputs exist mostly to be saved with your workflow, but the interaction happens in the panel: browse, page through results, select, delete, zip. The filtering logic lives in the inputs you set:
- source -
output folderorcustom folder. Custom mode uses custom_folder (an absolute path, set via the node's path field / Browse button). - mode -
last N(images from the last N days/weeks/months) ordate range(between start_date and end_date,YYYY-MM-DD, empty = no limit). - amount - how far back to look;
0shows everything. - unit -
days,weeksormonthsfor the "last N" mode.
There are no outputs - it's an output node whose job is the UI, and it needs to be on the canvas (and run once) for the gallery to populate.
Install
Part of the Starnodes2024/ComfyUI_StarNodes pack:
cd ComfyUI/custom_nodes
git clone https://github.com/Starnodes2024/ComfyUI_StarNodes
cd ComfyUI_StarNodes
pip install -r requirements.txt
Restart, search star. No extra dependencies - this one is pure UI.
Where people get burned
The main trap is expecting the gallery to auto-refresh mid-session; like most custom widgets it reflects the folder state when it ran, so re-run the node (or re-execute the workflow) after generating new images. Second: amount = 0 means "everything," which on a landfill folder is a lot of thumbnails and a slow page - start with a narrow window like 7 days and widen from there. And remember deletes are immediate: there's no recycle bin, so use the ZIP-download path if there's any chance you'll want a file back.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| source | COMBO | output folder | Which folder to browse: the ComfyUI output folder or a custom folder of your choice. |
| mode | COMBO | last N | 'last N': images from the last N days/weeks/months. 'date range': images between the start and end date. |
| custom_folder | STRING | Absolute path of the folder to browse in 'custom folder' mode. Set it via the path field / Browse button in the node. | |
| amount | INT | 70–100000 | How many days/weeks/months back to show. 0 = show all images. |
| unit | COMBO | days | Time unit for the 'last N' mode. |
| start_date | STRING | Start date YYYY-MM-DD ('date range' mode). Empty = no lower limit. | |
| end_date | STRING | End date YYYY-MM-DD ('date range' mode). Empty = no upper limit. |
Outputs (0)
No outputs