ComfyUI > Nodes > ComfyUI_MieNodes > Delete Files πŸ‘

ComfyUI Node: Delete Files πŸ‘

Class Name

DeleteFiles|Mie

Category
πŸ‘ MieNodes/πŸ‘ File Operations
Author
mie (Account age: 1888days)
Extension
ComfyUI_MieNodes
Latest Updated
2025-04-17
Github Stars
0.05K

How to Install ComfyUI_MieNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_MieNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_MieNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Delete Files πŸ‘ Description

Efficiently manage and remove unwanted files, focusing on duplicates and unnecessary files to maintain a clean file system.

Delete Files πŸ‘| Delete Files πŸ‘:

The DeleteFiles| Delete Files πŸ‘ node is designed to efficiently manage and remove unwanted files from your system, particularly focusing on duplicate or unnecessary files. This node is part of the Delete Files πŸ‘Nodes suite, which provides a range of file operations to streamline your workflow. The primary goal of this node is to help you maintain a clean and organized file system by automatically identifying and deleting files that match specific criteria, such as duplicates or files with certain extensions. By using this node, you can save valuable storage space and reduce clutter, making it easier to manage your files and directories. The node operates by scanning directories for files that meet the specified conditions and then safely removing them, ensuring that your file system remains tidy and efficient.

Delete Files πŸ‘| Delete Files πŸ‘ Input Parameters:

path

The path parameter specifies the location of the files or directories you wish to target for deletion. It supports pattern matching, allowing you to define specific file types or naming conventions to be included in the deletion process. For example, you can use a pattern like X://path/to/file_or_directory/*.txt to target all text files in a directory. This parameter is crucial as it determines the scope of the deletion operation. The default value is set to a generic path pattern, but you should customize it to fit your specific needs.

mock

The mock parameter is a boolean flag that, when set to True, simulates the deletion process without actually removing any files. This is useful for testing and verifying which files would be affected by the operation before committing to the actual deletion. The default value is False, meaning that the node will perform real deletions unless specified otherwise. Using the mock mode can help prevent accidental data loss by allowing you to review the potential impact of the operation.

Delete Files πŸ‘| Delete Files πŸ‘ Output Parameters:

log

The log output provides a detailed account of the deletion process, including information about which files were deleted and any errors encountered during the operation. This output is essential for tracking the node's activity and ensuring that the desired files have been successfully removed. The log can also serve as a record for auditing purposes or troubleshooting if unexpected results occur.

Delete Files πŸ‘| Delete Files πŸ‘ Usage Tips:

  • Use the mock parameter to preview the files that will be deleted, ensuring that you do not accidentally remove important data.
  • Customize the path parameter with specific patterns to target only the files you want to delete, such as using extensions or prefixes to narrow down the selection.
  • Regularly check the log output to verify the success of the deletion process and to identify any issues that may need attention.

Delete Files πŸ‘| Delete Files πŸ‘ Common Errors and Solutions:

File does not exist, may have already been deleted

  • Explanation: This error occurs when the node attempts to delete a file that is no longer present in the specified directory, possibly because it was already deleted or moved.
  • Solution: Verify the file paths and ensure that the files you intend to delete are still in the directory. Use the mock mode to check the files before actual deletion.

Unable to delete file <file>: <error_message>

  • Explanation: This error indicates that the node encountered an issue while trying to delete a specific file, which could be due to permission issues or the file being in use by another process.
  • Solution: Check the file permissions and ensure that no other applications are using the file. You may need to close any programs that are accessing the file or adjust the file's permissions to allow deletion.

Delete Files πŸ‘ Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_MieNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.