Clean Slate
Clear current image selections, conventional previews and prompts without deleting history.
Nodes (2)
ComfyUI Clean Slate
Clear connected images and prompts while keeping workflow connections, saved files and prompt history intact.
Release: v0.2.1 · License: MIT · Free local extension
Preview


Screenshot-based promotional previews. Original screenshots below remain the interface reference.


Five actions, in order
| Button | What it clears | | --- | --- | | Reload All Connections | Connected image selections, mask/latent branch previews and both prompts | | Reload All Connected Images | Connected image selections and image/mask/latent branch previews | | Reload Both Prompts (+ / -) | Both connected active prompt fields | | Reload + Prompt | Connected positive prompt fields only | | Reload - Prompt | Connected negative prompt fields only |
“Reload” is the button label. Actions clear selected content and refresh the display; they do not recreate nodes, reconfigure nodes, disconnect wires, execute generation or restart ComfyUI. Every action asks for confirmation first. Cancel or Esc leaves content unchanged; the final OK message reports completion.
Connections
| Input | Count | Connect from | | --- | --- | --- | | image_1–image_5 | 5 | IMAGE outputs of image sources or preview branches | | mask_1–mask_5 | 5 | MASK outputs | | positive / negative | 2 | Matching STRING outputs or separate text-encoder CONDITIONING outputs | | latent / latent_2 | 2 | LATENT outputs, such as KSampler | | control | 1 | Optional control-node output; the controller does not reset its settings |
These are additional branches: leave the workflow's existing wires connected. Connecting a latent or processed-image output clears conventional previews on that branch; it does not delete latent tensors. Clearing a processed mask does not erase mask files. A directly connected Load Image source has its current selection cleared.
Supports paired positive/negative fields, standard text/prompt fields, text_g/text_l/text_t5, and linked text sources/reroutes. Arbitrary third-party field names or conditioning-processing chains may require adapters.
Install or update
- Stop ComfyUI. Download the release ZIP and extract
comfyui-clean-slateintoComfyUI/custom_nodes/. Replace the existing files; do not install a second copy. - Restart ComfyUI and hard-refresh its browser with Ctrl+F5.
- Add Clean Slate Controller under RebelTortuga / Utilities. When updating an old workflow with obsolete sockets, add a fresh controller and reconnect it before removing the old one.
- Load
examples/ComfyUI-Clean-Slate.jsonfor a blank image/paired-prompt wiring example. That example also requires PromptHistory. The extension itself has no extra Python dependencies.
Cleared previews and saved size
Cleared conventional image previews stay blank across workflow-tab reconstruction. New execution releases the preview-clear markers so fresh results can appear. Select a new source image before running after clearing. Save the workflow to retain blank values across reopening.
The buttons sit above the sockets. Resize the controller as desired and save: tab restoration preserves its saved width and height.
Fixed image-edit mode node
This release also includes Image Edit Mode (1 Auto / 2 Painted Mask) (CleanSlateImageMode). It has exactly two IMAGE inputs and one IMAGE output: mode 1 selects the automatic result; mode 2 selects the painted-mask composite. Inputs do not grow dynamically. This is used by the Qwen image-edit workflow.
Validation and limits
The author confirmed generation, clearing, Cancel and saved-size behavior in their ComfyUI setup. Isolated tests also cover prompt polarity, tab-restored caches, cancellation, size preservation and image-mode branch selection. A clean-machine GPU installation was not tested. Targets the classic canvas renderer; third-party preview caches and Nodes 2.0 require separate compatibility checks.
No saved image files or history files are deleted. Histories stay on each user's machine; no personal images or active prompts are bundled. This is an independent community extension, not an official ComfyUI product.
🔗 Related Free RebelTortuga Projects
Explore other free tools and workflows:
- comfyui-free-local-qwen-image-edit
- comfyui-free-local-sdxl-inpainting
- comfyui-free-local-wan-video-quality
- comfyui-free-local-wan-video-high-resolution
Browse all RebelTortuga projects
🐢 Support RebelTortuga
Clean Slate is completely free to use. No payment or donation is required!
If this node has helped you, consider supporting its development.
☕ Help this turtle get a new shell! 🐢💚
Your support helps me continue improving Clean Slate, developing new ComfyUI tools, and sharing free projects with the community.
No pressure. No paywalls. Just one rebellious turtle with big ideas!
License
MIT; see LICENSE.
<!-- BEGIN REBELTORTUGA SAFETY -->
Privacy & Software Safety
Read the project safety guidance before use. It covers local workflows, dependencies, saved files, and security warnings. See SECURITY.md for vulnerability reporting and the license for terms.
Privacy & Software Safety · Project Licenses
Do not upload passwords, access tokens, browser profiles, private backups, or unredacted diagnostic reports to public issues.
<!-- END REBELTORTUGA SAFETY --> <!-- rebeltortuga-official-links:start -->Official RebelTortuga links
- 🌐 Website
- <img src="https://cdn.simpleicons.org/github/FFFFFF" width="17" height="17" alt=""> GitHub
- <img src="https://cdn.simpleicons.org/twitch/9146FF" width="17" height="17" alt=""> Twitch
- <img src="https://cdn.simpleicons.org/youtube/FF0033" width="17" height="17" alt=""> YouTube
- <img src="https://cdn.simpleicons.org/patreon/FF424D" width="17" height="17" alt=""> Patreon
- <img src="https://cdn.simpleicons.org/kofi/FF5E5B" width="17" height="17" alt=""> Ko-fi