[GH-ISSUE #1579] Cannot uninstall custom nodes #673

Closed
opened 2026-10-27 21:20:45 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @ridsama on GitHub (Feb 26, 2025).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1579

The custom nodes were added through Manager, and I cannot uninstall them.

Traceback (most recent call last):
  File "D:\stable-diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager\glob\manager_server.py", line 506, in do_uninstall
    res = core.unified_manager.unified_uninstall(node_name, is_unknown)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\stable-diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager\glob\manager_core.py", line 1174, in unified_uninstall
    shutil.rmtree(fullpath)
  File "shutil.py", line 781, in rmtree
  File "shutil.py", line 635, in _rmtree_unsafe
  File "shutil.py", line 633, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'D:\\stable-diffusion\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\.disabled\\comfyui-image-saver@nightly\\.git\\objects\\pack\\pack-3e1d28279829b52e550ae198d220aeb67866f850.idx'

[ComfyUI-Manager] Queued works are completed.
{'uninstall': 1}

It even took a few tries to even disable it.

The steps as I remember them:

  1. Install the custom node through Manager, restart as prompted
  2. Go back to Manager, and find this new custom node, try to uninstall it
  3. It will say error occurred with uninstall, with the error above in console
    Image
  4. Click on Restart button as it will appear next to Back button, after restart the custom node will still be there

Note this was a brand new ComfyUI install. ComfyUI Manager was installed using .bat file for standalone.

Originally created by @ridsama on GitHub (Feb 26, 2025). Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1579 The custom nodes were added through Manager, and I cannot uninstall them. ``` Traceback (most recent call last): File "D:\stable-diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager\glob\manager_server.py", line 506, in do_uninstall res = core.unified_manager.unified_uninstall(node_name, is_unknown) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\stable-diffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager\glob\manager_core.py", line 1174, in unified_uninstall shutil.rmtree(fullpath) File "shutil.py", line 781, in rmtree File "shutil.py", line 635, in _rmtree_unsafe File "shutil.py", line 633, in _rmtree_unsafe PermissionError: [WinError 5] Access is denied: 'D:\\stable-diffusion\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\.disabled\\comfyui-image-saver@nightly\\.git\\objects\\pack\\pack-3e1d28279829b52e550ae198d220aeb67866f850.idx' [ComfyUI-Manager] Queued works are completed. {'uninstall': 1} ``` It even took a few tries to even disable it. The steps as I remember them: 1. Install the custom node through Manager, restart as prompted 2. Go back to Manager, and find this new custom node, try to uninstall it 3. It will say error occurred with uninstall, with the error above in console ![Image](https://github.com/user-attachments/assets/5daf0092-66a3-4a4b-8f00-3537c416a254) 4. Click on Restart button as it will appear next to Back button, after restart the custom node will still be there Note this was a brand new ComfyUI install. ComfyUI Manager was installed using .bat file for standalone.
Author
Owner

@ltdrdata commented on GitHub (Feb 28, 2025):

This issue occurs only on Windows and is caused by Python placing a file lock on paths that have already been imported or opened via Git.
As a measure to address this, a patch will be implemented so that when this issue occurs on Windows, the actual deletion will take place upon restart.

<!-- gh-comment-id:2690981763 --> @ltdrdata commented on GitHub (Feb 28, 2025): This issue occurs only on Windows and is caused by Python placing a file lock on paths that have already been imported or opened via Git. As a measure to address this, a patch will be implemented so that when this issue occurs on Windows, the actual deletion will take place upon restart.
Author
Owner

@Tapyon commented on GitHub (Mar 1, 2025):

we are LIVE ! amazing !!
i start a couple weeks ago with COMFYUI, and i was having errors that have been solved 2 years ago, now im 16 hours away !! getting close!!

<!-- gh-comment-id:2692043353 --> @Tapyon commented on GitHub (Mar 1, 2025): we are LIVE ! amazing !! i start a couple weeks ago with COMFYUI, and i was having errors that have been solved 2 years ago, now im 16 hours away !! getting close!!
Author
Owner

@ltdrdata commented on GitHub (Mar 3, 2025):

This is patched.

<!-- gh-comment-id:2694225244 --> @ltdrdata commented on GitHub (Mar 3, 2025): This is patched.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/ComfyUI-Manager#673
No description provided.