Remove Local Image(removeLocalImage)
The Remove Local Image node deletes an image file from the local file system.
remove Local Image
Description
The Remove Local Image node deletes an image file from the local file system. It is a utility/housekeeping node for cleaning up images that are no longer needed, such as temporary files, outdated previews, or generated images you no longer want to keep on disk.
Inputs
any
- Type: COMBO (required)
A dropdown list of locally available images. Select the image you want to remove from this list. The options are populated from the images ComfyUI can currently see in its local directories, so the target image must exist locally to appear here.
file_name
- Type: STRING (required)
- Default:
""
The name of the image file to delete, including its file extension. This is the actual filename used for the deletion. If left empty or if the value does not match an existing file, no file is removed and the node completes without error.
Outputs
This node has no outputs. It is used purely for its side effect of deleting a local image file. Because it returns nothing, it should be placed at the end of a workflow branch or used where no further data needs to be passed along.
Usage Notes
- Deleting a file is irreversible; double-check that the selected image is not needed elsewhere in the workflow or for future use.
- The
anyinput both provides the selection list and triggers node execution. Since the node has no outputs, the workflow still needs to reach this node through the graph to perform the deletion. - If the
file_namedoes not exactly match a file on disk, the node silently does nothing, so no error is raised for missing files. - This node belongs to the
EasyUse/Imagecategory, placing it alongside other image-related utility nodes.
Comments
Sign in with GitHub to join the discussion.