Video Helper Suite πŸŽ₯πŸ…₯πŸ…—πŸ…’generated

Prune Outputs πŸŽ₯πŸ…₯πŸ…—πŸ…’(PruneOutputs)

This node receives a special data structure (VHS_FILENAMES) containing a list of file paths and performs deletion operations based on the user-selected cleanup mode.

Prune Outputs

filenames
options
COMBO
VideoHelperSuite

The Prune Outputs πŸŽ₯πŸ…₯πŸ…—πŸ…’ node receives a special data structure (VHS_FILENAMES) containing a list of file paths and performs deletion operations based on the user-selected cleanup mode.

The Prune Outputs node is a management tool designed to clean up files generated during video processing workflows. Its core function is to automatically delete intermediate or temporary files created during video generation, based on user selection, helping users save disk space and maintain a tidy workspace.

Node Functionality

This node receives a special data structure (VHS_FILENAMES) containing a list of file paths and performs deletion operations based on the user-selected cleanup mode. It is strictly limited to deleting files located only within ComfyUI's output or temporary directories to prevent accidental deletion of system files. Its internal logic determines whether to delete intermediate files, or both intermediate and utility files, based on the value of the options parameter.

Node Parameter Description - Prune Outputs πŸŽ₯πŸ…₯πŸ…—πŸ…’

Connection Inputs (Inputs)

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
filenamesVHS_FILENAMESYes--This node has no output parameters; its function is to perform file deletion operations.

Control Parameters (Parameters)

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
optionsCOMBOYesIntermediate"Intermediate", "Intermediate and Utility"Selects the type of files to clean up. Options are "Intermediate" (intermediate files only) or "Intermediate and Utility" (intermediate and utility files).

Usage Scenarios

In a typical video generation or processing workflow, users can connect this node after the desired final video has been saved. For example, after using nodes like "Video Combine" or "Images to Video," connecting their filenames output to this node and setting the cleanup option will automatically clean up unwanted intermediate frame images or temporary video files at the end of the process, eliminating the need for manual searching and deletion.

Notes

When using this node, please note that file deletion operations are irreversible. Ensure you have confirmed that all necessary final output files are saved before connecting the filenames parameter and executing the workflow, as this node may delete intermediate products you still require.

The Prune Outputs πŸŽ₯πŸ…₯πŸ…—πŸ…’ node is from the ComfyUI-VideoHelperSuite node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…