Nodes/ComfyUI_StarNodes/⭐ Star Output Cleaner
ComfyUI Node

⭐ Star Output Cleaner

Clean your output folder without leaving ComfyUI or touching the filesystem

By Starnodes2024·Created 2 years ago·Updated 2 days ago· 106
⭐ Star Output Cleaner
      sourceoutput folder
      modelast N
      custom_folder
      amount7
      unitdays
      start_date
      end_date

      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 folder or custom 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) or date range (between start_date and end_date, YYYY-MM-DD, empty = no limit).
      • amount - how far back to look; 0 shows everything.
      • unit - days, weeks or months for 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.

      Category⭐StarNodes/Helpers And Tools

      Inputs (7)

      NameTypeDefaultDescription
      sourceCOMBOoutput folderWhich folder to browse: the ComfyUI output folder or a custom folder of your choice.
      modeCOMBOlast N'last N': images from the last N days/weeks/months. 'date range': images between the start and end date.
      custom_folderSTRINGAbsolute path of the folder to browse in 'custom folder' mode. Set it via the path field / Browse button in the node.
      amountINT70–100000How many days/weeks/months back to show. 0 = show all images.
      unitCOMBOdaysTime unit for the 'last N' mode.
      start_dateSTRINGStart date YYYY-MM-DD ('date range' mode). Empty = no lower limit.
      end_dateSTRINGEnd date YYYY-MM-DD ('date range' mode). Empty = no upper limit.

      Outputs (0)

      No outputs