ComfyUI > Nodes > Comfyui-Z-Image-Utilities > Z-Image Clear Sessions

ComfyUI Node: Z-Image Clear Sessions

Class Name

Z_ImageClearSessions

Category
Z-Image
Author
Koko-boya (Account age: 2346days)
Extension
Comfyui-Z-Image-Utilities
Latest Updated
2025-12-22
Github Stars
0.1K

How to Install Comfyui-Z-Image-Utilities

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

Z-Image Clear Sessions Description

Clears conversation history in ComfyUI, managing sessions efficiently by ID or all at once.

Z-Image Clear Sessions:

The Z_ImageClearSessions node is designed to manage and clear conversation history sessions within the ComfyUI environment. This node is particularly useful for maintaining an organized and efficient session management system by allowing you to clear all existing sessions or target specific ones. By doing so, it helps in freeing up resources and ensuring that outdated or unnecessary session data does not clutter the system. This functionality is crucial for users who engage in multiple conversation sessions and need a streamlined way to manage session data, especially in environments where session history can grow rapidly. The node provides a straightforward method to either clear all sessions at once or selectively clear a session by its ID, making it a flexible tool for session management.

Z-Image Clear Sessions Input Parameters:

clear_all

The clear_all parameter is a boolean input that determines whether all conversation sessions should be cleared. When set to True, the node will clear all existing sessions, effectively resetting the session history. This is useful when you want to start fresh without any previous session data. The default value is True, meaning that unless specified otherwise, the node will clear all sessions.

session_id

The session_id parameter is an optional string input that allows you to specify a particular session to clear. If a session ID is provided, the node will attempt to clear only the session associated with that ID. This is particularly useful when you want to maintain other sessions intact while removing a specific one. The default value is an empty string, indicating that no specific session is targeted unless specified.

Z-Image Clear Sessions Output Parameters:

status

The status output is a string that provides feedback on the result of the clear operation. It indicates whether all sessions were cleared, a specific session was cleared, or if no action was taken. This output is essential for understanding the outcome of the node's execution and for debugging purposes, as it confirms whether the intended sessions were successfully cleared.

Z-Image Clear Sessions Usage Tips:

  • Use the clear_all parameter set to True when you need to reset the entire session history, especially after a major update or when starting a new project.
  • Specify a session_id when you want to clear a particular session without affecting others, which is useful for maintaining ongoing work in other sessions.

Z-Image Clear Sessions Common Errors and Solutions:

Session not found for clearing: <session_id>

  • Explanation: This error occurs when the specified session ID does not exist in the current session history.
  • Solution: Double-check the session ID for any typos or errors. Ensure that the session ID you are trying to clear is correct and currently active in the session history.

No action taken

  • Explanation: This message indicates that neither clear_all was set to True nor a valid session_id was provided.
  • Solution: Ensure that you have set clear_all to True if you intend to clear all sessions, or provide a valid session_id to clear a specific session.

Z-Image Clear Sessions Related Nodes

Go back to the extension to check out more related nodes.
Comfyui-Z-Image-Utilities
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.