ComfyUI Node: remove

Class Name

Basic data handling: DataListRemove

Category
Basic/Data List
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling 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

remove Description

DataListRemove node removes the first occurrence of a specified value from a list, returning a modified list.

remove:

The DataListRemove node is designed to streamline the process of managing lists by allowing you to remove the first occurrence of a specified value from a list. This node is particularly useful when you need to clean up or modify lists by eliminating unwanted elements. By providing a list and a target value, the node efficiently searches for the first instance of the value and removes it, returning a new list with the modification. If the specified value is not found, the node will return the original list unchanged. This functionality is essential for tasks that require precise list management, ensuring that your data remains organized and relevant.

remove Input Parameters:

list

The list parameter is the primary input for the node, representing the collection of items from which you want to remove a specific value. This parameter accepts any type of list, allowing for flexibility in the types of data you can manage. The list serves as the source from which the node will attempt to remove the specified value. There are no minimum or maximum constraints on the list size, and it can contain any data type, making it versatile for various applications.

value

The value parameter specifies the item you wish to remove from the list. This parameter can be of any data type, matching the type of elements within the list. The node will search for the first occurrence of this value in the list and remove it. If the value is not present, the list remains unchanged. This parameter is crucial for targeting specific elements within your list for removal.

remove Output Parameters:

list

The list output parameter provides the modified list after the removal operation. If the specified value was found and removed, this output will reflect the updated list without the first occurrence of the value. If the value was not found, the output will be identical to the input list. This output is essential for verifying the success of the removal operation and for further processing or analysis of the list.

success

The success output parameter is a boolean indicator that signifies whether the removal operation was successful. It returns True if the specified value was found and removed from the list, and False if the value was not present. This parameter is useful for error checking and ensuring that the desired modification to the list was achieved.

remove Usage Tips:

  • Ensure that the value parameter matches the data type of the elements in the list to avoid unsuccessful removal attempts.
  • Use the success output to verify whether the removal operation was successful, allowing you to handle cases where the value was not found.
  • Consider using this node in conjunction with other list management nodes to build complex data processing workflows.

remove Common Errors and Solutions:

ValueError: Value not found in list

  • Explanation: This error occurs when the specified value is not present in the list, and the node attempts to remove it.
  • Solution: Check the success output parameter to determine if the value was found. If False, ensure that the value parameter is correctly specified and matches an element in the list.

TypeError: Unsupported data type

  • Explanation: This error may occur if the list or value parameters contain unsupported data types.
  • Solution: Verify that the list is a valid list and that the value is of a compatible data type with the elements in the list. Adjust the data types as necessary to ensure compatibility.

remove Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
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 Models, enabling artists to harness the latest AI tools to create incredible art.

remove