How To Uninstall ComfyUI Completely: A Step-by-Step Removal Guide
Uninstalling ComfyUI requires systematically removing both the core repository folder and its isolated Python environment, along with massive model checkpoints stored in separate directories. By manually targeting these locations, you prevent orphaned files from lingering on your storage drives and reclaim dozens of gigabytes of disk space.
Pre-Procedure Planning for ComfyUI Removal
Before initiating the deletion process, you must understand the storage footprint of ComfyUI. Unlike traditional desktop applications that register themselves with the operating system registry or application list, ComfyUI installations—especially the portable standalone version—often reside entirely within localized folder trees, though custom nodes and checkpoints frequently bleed into shared system directories.
- Essential tools and resources: File Explorer or terminal access, adequate administrative privileges, and basic understanding of directory paths.
- Mandatory prerequisite knowledge: Awareness that ComfyUI stores gigabytes of model checkpoints, LoRAs, and embeddings that should be backed up before deletion if you intend to use them in other local generative AI interfaces like Automatic1111 or Forge.
- Estimated duration and scope: Approximately 5 to 15 minutes, depending heavily on the total gigabytes of AI models and custom node dependencies that need to be cleared from secondary storage drives.
Step-by-Step ComfyUI Deletion Workflow
Step 1: Back Up Essential Models and Custom Nodes
Before deleting any files, inspect your ComfyUI directory to ensure you are not permanently deleting valuable assets. Navigate to your ComfyUI installation folder and look inside the models subdirectory. Here, you will find folders containing Checkpoints, VAEs, LoRAs, ControlNets, and Upscale Models that often take hours to download and hundreds of gigabytes of storage space.
- Open your primary file manager and locate your ComfyUI installation directory.
- Navigate into the models folder and copy any custom checkpoints, textual inversions, or LoRAs to a secure backup folder on an external or separate drive.
- Check the custom_nodes folder if you have created custom Python scripts or configurations that you may wish to reference in future installations.
Warning: Deleting the ComfyUI folder without backing up your models directory will permanently erase all downloaded Stable Diffusion, Flux, or SDXL checkpoints stored inside it.
Step 2: Terminate Active Processes and Virtual Environments
Ensure that no background Python processes, server instances, or embedded command-line interfaces associated with ComfyUI are currently running. If you are using the portable version, ensure the embedded python.exe process has been fully terminated via your operating system task manager.
- Press Ctrl+Shift+Esc on Windows or open Activity Monitor on macOS to launch your system task manager.
- Scan the active processes list for any lingering instances of python.exe, ComfyUI, or embedded command prompts tied to your installation path.
- Right-click these processes and select End Task to release file locks on the installation directory.
Pro-Tip: If your operating system throws an error stating that a file is currently in use when trying to delete the folder, a background Python server instance is almost certainly still active.
Step 3: Delete the ComfyUI Directory and Standalone Python Environment
Once all background processes are halted and your model backups are secure, you can proceed to remove the application files. If you used the standalone portable zip release, the embedded Python distribution, pip packages, and virtual environment are all housed within this single root folder.
- Navigate to the parent directory where your ComfyUI folder is located.
- Right-click the main ComfyUI folder and select Delete, or drag it directly to your Recycle Bin/Trash.
- Empty your Recycle Bin or Trash to permanently scrub the files from your storage drive and reclaim the disk space.
Step 4: Purge Orphaned Python Dependencies and Global Caches
If you installed ComfyUI manually via a git clone rather than the portable package, you may have global pip caches, virtual environments (venv), or system-wide registry entries that need clearing. Furthermore, pip caches and huggingface cache folders often store massive duplicate files in hidden system directories.
- Open your command line interface, terminal, or PowerShell window.
- Clear the local pip cache by executing the command pip cache purge to free up hidden cached wheel files.
- Locate and delete hidden cache directories like .cache/huggingface and .cache/torch in your user profile directory if you no longer require cached transformer models or datasets.
How to install ComfyUI - Stable Diffusion Art
Comparison of ComfyUI Installation Types and Cleanup Scope
| Installation Method | Primary Folder Location | Environment Type | Cleanup Action Required |
|---|---|---|---|
| Standalone Portable | User-selected drive/folder | Isolated embedded Python | Delete root folder & empty recycle bin |
| Manual Git Clone | User-selected directory | Virtual Environment (venv) | Delete root folder, venv, and pip cache |
| Cloud/Colab Instance | Cloud server instance | Remote virtual machine | Terminate session and delete workspace storage |
Common Removal Roadblocks and Field Fixes
File In Use Error During Deletion:
- Root Cause: A lingering Python background process or a command-line window is still actively referencing files inside the directory.
- Actionable Fix: Open your task manager, terminate all instances of python.exe, close any open command prompt windows pointing to the directory, and retry the deletion.
Failing to Reclaim Disk Space After Deletion:
- Root Cause: Files were moved to the Recycle Bin or Trash, but the bin has not been permanently emptied.
- Actionable Fix: Open your system Recycle Bin or Trash folder and select Empty to completely purge the deleted gigabytes from your storage sectors.
Accidental Loss of Custom Checkpoints:
- Root Cause: Deleting the entire ComfyUI root folder without extracting the models and LoRAs subdirectories first.
- Actionable Fix: Check if file recovery software can restore the deleted files, or re-download your required base models from community repositories like Civitai or Hugging Face.
Frequently Asked Questions
Does ComfyUI create registry entries on Windows?
No, ComfyUI does not write installation data to the Windows Registry. Because it operates either as a portable standalone package or a manual local repository, removing it is entirely file-based. Simply deleting the folder and clearing associated caches completely removes the software from your system.
How do I uninstall custom nodes installed via ComfyUI Manager?
Custom nodes are stored directly inside the custom_nodes subdirectory within your main ComfyUI folder. If you installed ComfyUI Manager or any other custom node, they will be completely and automatically deleted when you wipe that specific folder or the root ComfyUI directory.
Will uninstalling ComfyUI delete my generated images?
Your generated images are typically saved inside the output folder located within the ComfyUI root directory. If you delete the main folder without moving this output directory elsewhere, your generated images will be permanently lost along with the application files.
Can I save my models to use with other Stable Diffusion UIs?
Yes, you can easily preserve your downloaded checkpoints, VAEs, and LoRAs by copying the models folder out of the ComfyUI directory before deleting the rest of the application files. You can then point other software platforms, such as Automatic1111, to these saved directories to avoid re-downloading them.
What is the best way to completely wipe Hugging Face and Torch caches?
ComfyUI and its underlying libraries often download default models to your user profile cache directory, typically located in your user home folder under .cache/huggingface. You can manually navigate to this hidden directory and delete its contents to recover significant amounts of hidden storage space.
