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
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 Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
filenames | VHS_FILENAMES | Yes | - | - | This node has no output parameters; its function is to perform file deletion operations. |
Control Parameters (Parameters)
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
options | COMBO | Yes | Intermediate | "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.
Prune Outputs π₯π ₯π π ’ Node Source Code Link
The Prune Outputs π₯π ₯π π ’ node is from the ComfyUI-VideoHelperSuite node package.
Comments
Sign in with GitHub to join the discussion.